This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
How to preserve numerical representation of chars when parsing?
- From: Thomas Brand <brand at puzzle dot ch>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Thu, 05 Sep 2002 16:40:40 +0200
- Subject: [xsl] How to preserve numerical representation of chars when parsing?
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hello dear xslt-lover/ xslt-developer,
I have a problem that seems to be not that easy to solve.
In my xml instance doc, several characters are coded as numerical
representations, i.e.:
« = << «
» = >> »
& = & &
" = " "
' = ´ &Apostroph;
< = < <
> = > >
# = # (Hash);
The instance doc must be transformed with a stylesheet to a new doc.
Now here comes the difficulty: the customer wants all numerical
representations to be preserved in the resulting doc.
As far as i know, a xml parser expands all references by default to it's
corresponding characters when first loading a doc.
Is there any possibility to let the numerical references pass transparently?
If not, what would be a good solution?
Any hints are appreciated
Thomas Brand
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list