RE: if - will this work?

Subject: RE: if - will this work?
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 5 Jun 2000 15:11:00 +0100
> Could anyone tell me if the following code would work? 
> 	<xsl:if test="@src='*.gif'">

Wishful thinking, I'm afraid. There's no regular expression matching in
XPath. There's no ends-with() function, either. Use something like
substring(@src, string-length(@src)-3, 4)='.gif'

Mike K

 XSL-List info and archive:

Current Thread