On 12/11/2013 05:23 PM, Scott Derrick wrote:
I think I understand now.
At the top of all our documents is:
<?xml version="1.0" encoding="us-ascii"?>
<?xml-model href="../schemas/mbel.rnc"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0" xml:lang="en">
Associating the mbel.rnc schema with this file for validation. We
normally use the Oxygen editor which then uses this schema file to
provide validation as we type and context completion of tags. A feature
that is a must have for us.
Do I understand the XXE does not use the specified schema in an xml file
to provide validation tag hints, etc.. The user has to create an
additional configuration file that mirrors the schema file to enable
validation and contextual help?
Is that correct?
Not really. XMLmind XML Editor of course supports a schema specified at
the top of the XML file.
Something like:
<?xml-model href="../schemas/mbel.rnc"?>
is supported by XMLmind XML Editor. However, we consider that adding
<?xml-model href="../schemas/mbel.rnc"?>
at the top of all our documents is OK when prototyping, but not the best
approach for production use.
If so is there an xsl script that would read a schema file and generate
the appropriate configuration file?
Sorry but the answer is no.
A wizard would be better suited than an XSL script. We have considered
writing such wizard but we gave up the idea, because our customers not
writing DITA, DocBook or XHTML documents, seem to have no problem
creating a basic configuration file by hand.
Not familiar with the configuration
file maybe that is not possible with the information contained in the
schema file?
Writing a basic --three liner-- configuration file takes about 5
minutes. The problem is that, before being able to do it, you are forced
to read some very annoying documentation (written by me!):
http://www.xmlmind.com/xmleditor/_distrib/doc/configure/config_file.html
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support