This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: if - will this work?
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: RE: if - will this work?
- From: Kay Michael <Michael dot Kay at icl dot com>
- Date: Mon, 5 Jun 2000 15:11:00 +0100
- Reply-To: xsl-list at mulberrytech dot com
> 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: http://www.mulberrytech.com/xsl/xsl-list