On 1/4/23 11:10, Kris Dyson wrote:
I’d like to send a non-technical person an XML Schema (XSD) and an XML
Editor support the user in creating an XML document the validates
against the XSD (using WYSIWYG or WYSIWYM)
Does your application support custom/bespoke XML schemas?
Yes, but XSD 1.0 only, not XSD 1.1.
1) Quick and dirty way. Send this person a document template along with
the XSD and the CSS stylesheet (both found in the mydoc_files/ folder
in the example below).
The document template could look like this:
---
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/css" href="mydoc_files/mydoc.css"?>
<mydoc xmlns="http://www.acme.com/ns/mydoc"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.acme.com/ns/mydoc
mydoc_files/mydoc.xsd">
<title></title>
<paragraph></paragraph>
</mydoc>
---
OR
2) Recommended method. Teach XMLmind XML Editor about your custom XSD by
writing a very simple configuration file for XXE" (a ".xxe" file).
See "Writing a configuration file for XXE",
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/config_file.html
Method (1) and (2) take about the same amount of time and efforts given
the fact that most of the time will be spent writing the CSS stylesheet.
See also "XMLmind XML Editor - Support of Cascading Style Sheets (W3C
CSS)", http://www.xmlmind.com/xmleditor/_distrib/doc/csssupport/index.html
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support