Re: [xsl] How to retain Unmapped Entity in Trasformed Output
Subject: Re: [xsl] How to retain Unmapped Entity in Trasformed Output|
From: Martin Honnen <Martin.Honnen@xxxxxx>
Date: Mon, 01 Feb 2010 14:21:36 +0100
Mapped all entities are transformed, no issues in this. But
unmapped/undefined entities are missing, not coming in output XML. So How to
retain the unmapped input decimal entity in out put XML after transform?
I am not sure I understand what you are asking. Do you have numeric
character references in your XML input and want to preserve them? That
is not possible with XSLT as the XSLT data model does not know any
character references, it operates on a tree model where you only have
text nodes with Unicode characters for any text in the XML input.
So unless you use LexEv (http://andrewjwelch.com/lexev/) on your XML
input first to convert character and/or entity references to XML
elements or attributes your stylesheet can operate on you will not be
able to preserve character or entity references.