This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: XSL/XPath expression


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]