Fredrik C. wrote:
My company already has a few XMLMind licenses used for editing DocBook
documents. We have got a suggestion to use Oxygen XML as an editor for a
new project as it supports Schematron. Does also XMLMind support
Schematron?
Yes, unless you have an ancient --several years old-- version of XMLmind
XML Editor. For example, DocBook 5 documents are validated against both
a RELAX NG schema and a Schematron.
Now we need to have an XML-editor for editing GenICam files which is
XML-files with corresponding XSD Schemas and Schematron Schemas.
However note that XMLmind XML Editor *native*, fast, implementation of
Schematron only supports rules written in XSLT 1.0, not in XSLT 2.0.
Therefore if the rules of the Schematron for GenICam uses are expressed
in XSLT 1.0, then you cannot use XMLmind XML Editor, even if the editor
supports Schematron.
Can I use XMLMind to edit these documents and get help with structure
and syntax using the above schemas.
No problem provided you write an ad-hoc XML *configuration* file which
adds support for GenICam documents to XMLmind XML Editor.
See "Writing a configuration file for XXE":
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/config_file.html
How do I specify which schema (XSD and Schematron) should belong to a
specific XML-file?
The configuration may be used to specify this.
See configuration element "schema":
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/schema.html
See configuration element "schematron":
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/schematron.html
--> If you want to specify the XSD to be used directly in the document,
then use the standard method:
---
<foo xmlns="http://www.acme.com/ns/foo"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.acme.com/ns/foo
foo.xsd">
---
http://www.w3.org/TR/xmlschema-1/#schema-loc
--> There is currently no way to specify the Schematron to be used
directly in the document.
The standard method should be the following one one, but it is currently
not supported by XMLmind XML Editor for Schematron, only for RELAX NG
Schemas.
---
<?xml-model href="foo.sch" type="application/schematron+xml"?>
---
http://www.w3.org/TR/xml-model/
Note that specifying which XSD and Schematron to use outside the
document itself, by the means an a configuration, is cleaner and less
error prone than specifying this in the document itself.
--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support