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: Passing through character entities intact


> 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


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