Subject: Re: Validation XSLT using XSLT 1.0
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 3 Jul 2008 12:20:03 +0100
|
> Does anyone know of a tool that parses an XML document and
> outputs it as ASCII replacing characters with named entities
> instead of numeric entites? Named entites you'd probably have
> to supply yourself?
You can do that in XSLT 2.0 with an identity transformation, serializing the
result using character maps.
Michael Kay
http://www.saxonica.com/
If you are using the usual ISO/HTML/MathML entity sets you can
<xsl:import
href="http://www.w3.org/2003/entities/2007/entitynamesmap.xsl"/>
which defines an "w3c-entity-names" map that you can then refer to in
xsl:output
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
|