Re: expression hell

Subject: Re: expression hell
From: Mike Hatalski <mhatalski@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 1999 13:44:32 -0700
Try
<xsl:when test=".[(../@first) and first-of-type()]">

--Mike

> i want to test that my parent has a "first" attribute, and that
> i'm the first child of my type.
> 
> i've tried a bunch of things, and xt barfs on all of them.
> i presume that if i can just get my [] and () in the right place,
> i can do it.
> 
> of course i could break it up into separate xsl:if clauses,
> but now i'm challenged.
> 
> for example, this doesn't work:
> <xsl:when test=".[../@first and first-of-type()]">
> 
> this works, but it tests the wrong thing
> (it tests whether i have a "first" attribute, not my parent):
> <xsl:when test=".[@first and first-of-type()]">


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread