xsl-list
[Top] [All Lists]

Re: [xsl] How to retain Unmapped Entity in Trasformed Output

2010-02-01 08:21:00
So unless you use LexEv (http://andrewjwelch.com/lexev/) on your
XML input first ...

Or something similar. I have to admit, I once advised a colleague to
use the hack
 $ perl -pe 's,&,@,g;' < input.xml > temp.xml
 $ xslt style.xslt temp.xml | perl -pe 's,@,&,g;' > output.xml
But here I had the advantage of knowing the data very well -- I knew
that the character "@" never occured, that "&" never occured except
in its markup role, and that there was no markup in the replacement
text of any named entities.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>