Subject: Re: [xsl] Testing for presence of alphabetical characters From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 06 Feb 2006 13:17:47 -0500 |
Cheers, Wendell
Using Saxon 851... can someone tell me why the following expression returns false?
<?xml version="1.0"?> <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:template match="/"> <xsl:for-each select="//entry"> <xsl:variable name="cont" select="."/> <xsl:variable name="alpha" select="'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'"/> <xsl:if test="contains($alpha, $cont)"> <!-- do something --> </xsl:if> </xsl:for-each> </xsl:template>
<?xml version="1.0"?> <document> <entry>1a</entry> </document>
__________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Testing for presence of a, Jon Gorman | Thread | Re: [xsl] Testing for presence of a, andrew welch |
Re: [xsl] Testing for presence of a, Jon Gorman | Date | Re: [xsl] Testing for presence of a, andrew welch |
Month |