Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to match on a literal asterisk

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 3/7/2006 8:08:00 PM

glenn.owens@g... wrote:

> Let's suppose that you're incorrect... how would someone represent the
> xsl:when statement with a literal asterisk???

I don't see anything wrong with the
   <xsl:when test="contains(Name,'*')">
you posted. XPath 1.0 does not have an escape mechanism for characters 
inside of string literals. Of course as XSLT is XML you could also use
   <xsl:when test="contains(Name,'&#42;')">
or
   <xsl:when test="contains(Name,'&#x2A;')">
but all that looks like the wrong attempt to find out why you get the 
error.

-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent