Subject: RE: XSL/XPath expression
From: "Michael Kay" <mhkay@xxxxxxxxxxxx>
Date: Wed, 16 May 2001 16:04:34 +0100
|
> 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
|