mauro castelli wrote:
hi all,
I'm using the latest version of Xalan/Xerces in order to achieve xml 1.1 support.
Looking at the "Samples" to get ideas on how to programmatically create
an XML Document in memory: xerces/CreateDOMDocument (DOM) and xalan/DocumentBuilder(SAX).


You'll have to ask the Xerces-specific questions on the Xerces-C user list.

Here is the question:
How can I specify, both with xerces-DOM and xalan-SAX, that I want to use XML 1.1
instead of the default XML 1.0?

I don't know what "xalan-SAX" is. Can you be more specific? If you mean using the class "XalanDocumentBuilder," then you can send events that contains Unicode characters that would be illegal in XML 1.0, but legal in XML 1.1.

If I then want to apply an XSL Transform, should I take care of something special due to
the 1.1 version?

Your stylesheet will need an xsl:output element with a version attribute with the value "1.1".

Note that XML 1.1 support in Xalan-C is still experimental, so you may experience problems. Also, there is no support for "undeclaring" namespaces, so you won't be able to use that feature of XML Namespaces 1.1.

Dave

Reply via email to