Re: [xsl] Xsl Template test element

Subject: Re: [xsl] Xsl Template test element
From: Oliver Becker <obecker@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Thu, 5 Jul 2001 10:41:09 +0200 (MET DST)
> I would to test a element value and i see if the first character has
> a dash ( - ) .
> The element to test is  "DATA[@FIELDID='10061']/@VALUE"

That's an attribute, not an element.
Have a look at the starts-with function in XPath.
<xsl:if test="starts-with(DATA[@FIELDID='10061']/@VALUE, '-')"> ...

Cheers,
Oliver

/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@xxxxxxxxxxxxxxxxxxxxxxx             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread