RE: [xsl] Passing through character entities intact

Subject: RE: [xsl] Passing through character entities intact
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Thu, 11 Oct 2001 10:26:51 +0100
> How do you take a character entity in an input document and
> pass it through
> to the output document as an entity(i.e. without any change)?

You can't, because XSLT processes the tree produced by the XML parser, and
that tree doesn't retain character entities.

The trick is to turn the character entities into something else (e.g. a
processing instruction) before XML parsing, which you can do by
preprocessing e.g. in Perl.

Mike Kay


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread