xsl-list
[Top] [All Lists]

Re: [xsl] Validation XSLT using XSLT 1.0

2008-07-03 04:21:28
 

   > 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. 
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--