This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL/XPath expression
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XSL/XPath expression
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Wed, 16 May 2001 16:04:34 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I am not quite sure (because I am not an XSLT-Expert)
> but maybe this is also a solution:
>
> <xsl:if test="@Type[string(.)='2'][position()=1]">
No, it isn't. That will match the first @Type attribute of the context node
whose value is "2". Of course there can be at most one such attribute, so
the position() test is nonsense.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list