Altova Mailing List Archives
>xsl-list Archive Home
>Recent entries
>Thread Prev - [xsl] Identity transformation for XSLT 2.0
[Thread Next]
Re: [xsl] Re: Identity transformation for XSLT 2.0
To:
Date: 12/19/2007 12:37:00 PM
> Compare that to the traditional identity template replacing > e.g.   with a space! It doesn't get replaced by a space (character 32) but by a non breaking space (character 160), every XMl application will treat character 160 the same as   so really nothing is lost here, and if you want to re-instate references, it's more reliable to use a character map or just specify an output encoding (such as US-ASCII) that doesn't have the character. The stylesheet still fails to parse many XML constructs <!DOCTYPE x [ <!ENTITY x "x]>"> ]> <x>&x;</x> is converted to <!DOCTYPE x [ <!ENTITY x "x]>"?> ]?> <x>&x;</x> which is not well formed. Documents with CDATA sections fail to parse altogether: <z>zzz<![CDATA[ <]]></z> produces: $ saxon9 id2.xml identity-template.xsl Error on line 2 column 71 of file:/c:/tmp/identity-template.xsl: SXXP0003: Error reported by XML parser: Element type "x4g9m2h5g7v3k991n5n6r" must be followed by either attribute specifications, ">" or "/>". Error at xsl:document on line 172 of file:/c:/tmp/identity-template.xsl: org.xml.sax.SAXParseException: Element type "x4g9m2h5g7v3k991n5n6r" must be followed by either attribute specifications, ">" or "/>". Transformation failed: Run-time errors were reported David
Disclaimer
These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

