[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: convert XML to NFC
Kenneth Reid Beesley wrote:
There is http://www.saxonica.com/documentation/functions/intro/normalize-unicode.xml which says it "Converts a string to Unicode normalized form NFC" so you could run your XML input through a stylesheet that transform text nodes and attribute values with e.g. <xsl:template match="text()"> <xsl:value-of select="normalize-unicode(.)"/> </xsl:template> <xsl:template match="@*"> <xsl:attribute name="{name()}" namespace="{namespace-uri()}" select="normalize-unicode(.)"/> </xsl:template> <xsl:template match="*"> <xsl:copy> <xsl:apply-templates select="@* | node()"/> </xsl:copy> </xsl:template> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|