[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: List of illegal characters for element, attri

Subject: Re: Re: List of illegal characters for element, attribute, and variable names.
From: "andrew welch" <andrew.j.welch@xxxxxxxxx>
Date: Mon, 1 May 2006 16:35:51 +0100
find illegal 8859 characters
So let me re-phrase. Where can I find a list of prohibited English-language
script characters?

This stylesheet gives you all prohibited latin1 characters:

<xsl:stylesheet version="2.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="ISO-8859-1"/>
<xsl:variable name="latin1" as="xs:integer+">
	<xsl:sequence select="32 to 126"/>
	<xsl:sequence select="160 to 255"/>
</xsl:variable>
<xsl:template match="/">
	<xsl:for-each select="$latin1">
		<xsl:if test="not(matches(codepoints-to-string(.), '[a-zA-Z0-9\.\-_]'))">
			<xsl:value-of select="concat(., ' ', codepoints-to-string(.), '&#xa;')"/>
		</xsl:if>
	</xsl:for-each>
</xsl:template>
</xsl:stylesheet>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.