Regarding XInclude, then - for some reason - support in XHTML 1.x
documents is disabled by default. However it is simple to enable, as
described in the release notes for XMLmind XMLeditor version 5.2.[1]
When enabled, it seems like the editor only support simple
inclusion/refernce. That is: the “XPointer element() scheme” is not
supported. Hence, it is only possible to copy references for which there
already is a conforming id attribute.
But for XHTML5 documents, the same release notes states that XHTML5
doesn’t really support XInclude, only to add, in a parenthesis,
“(well, at least, the XPointer element() scheme)”. [1]
Why is that?
Why not support the same simple refence that works in XHTML 1.x
documents. The lack of a XHTML5 dtd should not matter. Because HTML5
spec says that the id attribute is of type ID.[3] Thus XML processors
really SHOULD assign ID type to HTML5’s id attribute. As well, the
specification of ‘xml:id version 1.0’ states that it is really up to
the application how it performs ID type assignment,[4] and it seems
reasonable to think the same way about “IDness” for id in XHTML5
documents.
For xml:id there is no real link between XML validation and ID type
assignment. By contrast, in XMLmind XMLeditor there **is**, it seems, a
link between validating the document according to DTD and ID type
assignement - which is OK, I guess, for XHTML 1.x documents. But it
seems that id in XHTML5 documents should be more or less handled the
same way that xml:id is treated in e.g. DocBooc - it should not be tied
to DTD but should rather be linked to the namespace.
* [1] http://www.xmlmind.com/xmleditor/changes.html#v5.2.0
* [2] http://www.xmlmind.com/xmleditor/_tutorial/modular_doc/index.html
* [3] https://html.spec.whatwg.org/multipage/dom.html#the-id-attribute
* [4] http://www.w3.org/TR/xml-id/#dt-id-assignment
--
leif halvard silli
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support