This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL: query part of string to return element
- From: "Jacoby, Peter R." <PJACOBY at PARTNERS dot ORG>
- To: "'xsl-list at lists dot mulberrytech dot com'" <xsl-list at lists dot mulberrytech dot com>
- Date: Tue, 24 Sep 2002 14:13:14 -0400
- Subject: RE: [xsl] XSL: query part of string to return element
- Reply-to: xsl-list at lists dot mulberrytech dot com
>>For right or wrong, I am a novice, I have tried xsl:key, starts-with(),
>>context() . . . all to no avail.
David and Tom have given you the correct syntax to use starts-with(), but you
may also want to look at contains() which can be useful for string comparisons.
something like: <xsl:when test="contains(attrdef, 'Navy')">
Hope that helps.
-Peter
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list