When open my existing dita document, the XMLEditor automatically added the
ditaarch namespace, that causes dita open toolkit failed with the following
error:
Error reported by XML parser Cause: org.xml.sax.SAXParseException: Attribute
"ditaarch" bound to namespace "http://www.w3.org/2000/xmlns/" was already
specified for element "concept".
My document is like this:
<?xml version="1.0" encoding="UTF-8"?>
<concept id="mydoc"
xsi:noNamespaceSchemaLocation=
"urn:oasis:names:tc:dita:xsd:concept.xsd:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<title>TriggerCollectBuilder</title>
<conbody>
<p>My doc</p>
</conbody>
</concept>
Open the document, change something and save. The document looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<concept id="mydoc"
xsi:noNamespaceSchemaLocation=
"urn:oasis:names:tc:dita:xsd:concept.xsd:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
<title>TriggerCollectBuilder</title>
<conbody>
<p>My doc, changed</p>
</conbody>
</concept>
Why the following attribute is added to the concept tag?
xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
Is there anyway to prevent XMLEditor from adding it?
Thanks.
Best Regards,
Cliff Zhao
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support