RE: Keeping entities of source file (was:Testing the number of ch ild elements)

Subject: RE: Keeping entities of source file (was:Testing the number of ch ild elements)
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 11 Feb 2000 12:08:12 -0000
> My source file contains <mo> elements   with content like &PlusMinus;
> And I want this to go unchanged into the output file.

The XML parser expands entities before the XSLT processor sees them, so the
XSLT processor has no way of knowing that an entity was used here.

I would suggest preprocessing the XML to replace & with something like #!#,
and then postprocessing the result file to reverse the operation.

Mike Kay


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


Current Thread