[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: expression hell

Subject: Re: expression hell
From: Mike Hatalski <mhatalski@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Apr 1999 13:44:32 -0700
hatalski
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.