This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: character entities and xslt


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]