I want to see DITA validations working for my file. How do I implement a DTD? for example,
Related
I want to create a VS Code extension that extends the existing XML extension by Red Hat (redhat.vscode-xml) and allows visual editing of XML schemas and possibly XML files bound to a schema (similar to Altova XML Spy).
I hope that I can benefit from the XML language server integrated by the XML extension regarding things like what can be added at this point in the file and highlighting errors.
How would I tackle this in an editor that is not text-based?
I studied the documentation for VS Code extensions a lot. I read the bits about CustomEditors, CustomTextEditors, and LanguageServers. I've also played around with the example code. I've looked at Eclipse glsp VS Code integration and read its documentation. I've also looked at Eclipse Sprotty VS Code integration. The point where I'm struggling is that I don't know how to leverage the existing XML language server.
Pursuant to the discussion in Add XHTML support, I'd like to start creating an extension for Visual Studio Code which would implement support for XHTML. Which is HTML with XML syntax, so the the desired functionality is already (mostly?) implemented elsewhere – for XML and HTML languages, the latter having two extensions bundled with VS Code: html and html-language features. But it's disparate.
As the first step, should I clone the VS Code repo and delete everything except the two directories named html and html-language features? Or Language services for HTML? Or the latter and html from the former? Or start with html, make it work for XHTML and only then deal with language features?
Should the second step be just adding the extension(s) I'm developing on my computer to my installation of VS Code? The GUI seems to allow adding only extensions from the Visual Studio Marketplace. Is it the right solution to place the extensions under development into VS Code's directory for extensions (either directly or with symbolic links)? I'm on Manjaro Linux.
If you can offer any other helpful advice, I welcome it too.
Seems like there is no way to automatically create and manage resx files in VS Code now. Does someone know extension for it?
P.S. Yeah, I know that I can edit resx file as bare xml, but it`s not a right way.
The problem with resx is that it uses a Visual Studio "Custom Tool" to generate the code for the resources, and so requires Visual Studio to function fully.
I've been working on a replacement to resx that should also work from VS Code. It uses json rather than xml to define the resources, but otherwise behaves much like a resx file. The json resources file uses a ".resj" extension, and has a very simple structure. It currently only supports string resources that can be defined either inline in the json, or in an external file reference.
The project is open source on GitHub here:
https://github.com/MarkPflug/Elemental.JsonResource/
This is available as a nuget package "Elemental.JsonResource", currently only pre-release. Simply add this package to your project to enable using resj files. It doesn't add a runtime dependency to your project, everything is done at build-time. My hope is to provide feature-parity with what a resx file can do, but it could be useful even in its current state.
I have been searching for a way to generate a pdf inside Struts 1.x and it occurs to me that it would be awesome to use latex code to include style on the pdf. Is this possible? I thought of birt and eclipse but I haven't been able to find any libraries that allow this.
We decided to go for an plugin mechanism which brings some services / logic etc., we use XML as a model approach, so the plugin has to bring it's own XSD to be integrated into the XML of the main application. This is done like the Spring approach (e.g. util:, jee: and other namespaces).
We can't upload every plugins XSD to a server. The XSD is located in the JAR of our plugin. Is it possible without adding this JAR to an XML Catalog to directly access this XSD and be able to reference it? So Eclipse can find this XSD and perform the auto-completion, validation, etc.?
Short: We have an XSD in our library and want to make use of it, how can we achieve this?
Look at the org.eclipse.wst.standard.schemas for examples of how to add schemas to the catalog from an Eclipse plug-in.