expression hell

Subject: expression hell
From: "Mark D. Anderson" <mda@xxxxxxxxxxxxxx>
Date: Sat, 10 Apr 1999 13:43:28 -0700
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()]">

-mda



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


Current Thread
  • expression hell
    • Mark D. Anderson - Sat, 10 Apr 1999 13:43:28 -0700 <=
      • <Possible follow-ups>
      • Mike Hatalski - Mon, 12 Apr 1999 13:44:32 -0700