Re: [xsl] preserving apos with identity transformation

Subject: Re: [xsl] preserving apos with identity transformation
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 15 Nov 2005 07:32:35 +0000
>>>>> "George" == George Cristian Bina <george@xxxxxxx> writes:

    George> Hi Charles, You cannot avoid that as the transformer does
    George> not know how the attribute value was encoded in the XML
    George> document, it receives the value already normalized from
    George> the XML parser and you should not need to avoid that,

Actually, it is possible in XSLT 2.0 to find out how the original
attribute was coded - you can use unparsed-text() to read the XML
document a second time, and then use something like xsl:analyze-string
to locate the original attribute value.
Then you could use xsl:output method="test" to write it back out in
the same form.

An incredibly difficult and near-useless technique. :-)
-- 
Colin Adams
Preston Lancashire

Current Thread