This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Xsl Template test element
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Xsl Template test element
- From: Oliver Becker <obecker at informatik dot hu-berlin dot de>
- Date: Thu, 5 Jul 2001 10:41:09 +0200 (MET DST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
> 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@informatik.hu-berlin.de |
| op|qo WWW: http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list