This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: character entities and xslt
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] character entities and xslt
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 20 Sep 2001 14:24:42 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> we get a valid xml file with some characters entities in it.
> Before we can make use of this XML we first transform it into another
> instance. This instance has another structure.
>
> The character entities in the first file are being resolved
> by the parser
> we use (saxon), resulting in that the editor we use
> (adept/epic) doen't
> recognize these characters (at least not all of them).
>
> We actually do not want the XSLT script to result in a xml
> file where all
> char. entites are resolved, they should be as in the original file.
>
> What am I doing wrong here?
You're not doing anything wrong, you're just wanting something that XSLT
doesn't provide. XSLT transforms the infoset that results from XML parsing,
and XML parsing resolves character references (and entity references) before
the transformation proper starts.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list