Altova Mailing List Archives>Archive Index >xsl-list Archive Home >Recent entries >Thread Prev - RE: Re: [xsl] List of illegal characters for element, attribute, and variable names. [Thread Next] Re: Re: [xsl] List of illegal characters for element, attribute, and variable names.To: Date: 5/1/2006 3:36:00 PM 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(.), '
')"/> </xsl:if> </xsl:for-each> </xsl:template> </xsl:stylesheet> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
