John L. Clark wrote:
> XXE understands the content model of XML documents for which it has a
> configuration.  In particular, it knows when elements may (or may not)
> have text node children, based upon the DTD provided in the document or
> configuration.  (Does this also apply with other schemata types such as
> WXS or RNG?)  

XXE does not support DTDs ;-). A DTD is translated on the fly to WXS,
the first time it is loaded.

WXS and RNG are equally, fully, supported in XXE. Schematron, as a
companion of WXS and RNG, is in our TODO list.


> Is there a way to access this information in the XXE DOM?

In principle, we do not answer to this kind of questions in this mailing
list.

* A Document
(http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/Document.html)
has ``client properties''.

* One of them, StandardProperty.DOCUMENT_TYPE
(http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doc/StandardProperty.html),
is a DocumentType
(http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/doctype/DocumentType.html).

* See also ElementCharSequence
(http://www.xmlmind.com/xmleditor/_distrib/doc/api/com/xmlmind/xmledit/search/ElementCharSequence.html).

It is important to understand that third party programmers are
encouraged to write commands which are specific to a given document type
(see
http://www.xmlmind.com/xmleditor/_distrib/doc/dev/command2.html#d0e3092).
Writing *generic* commands is very hard, even for us, here at XMLmind.


Reply via email to