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

RE: Conditional selecting

Subject: RE: Conditional selecting
From: "Jim Neff" <jneff@xxxxxxxxxxxxxxx>
Date: Mon, 13 Dec 2004 13:00:04 -0500
the not statement java
 David,


> better to use 
>
> <xsl:sort select="field_no"   order="ascending" data-type="number"/>
> I think.

Yes, you are correct.  I didn't know that parameter existed, thanks.



>  <xsl:with-param name="current_context" select="."/> Why this param,
couldn't you just use . in the called template?

Because I have defined another template for the 'record' and I can't figure
out a way to call it without loosing context of the calling template.  (I'm
still very new to XSLT)



> something like:
>
> select="$field_definitions/*[@type = 'EA0']
>                             [plan_id or not(field_no=../*[@type =
'EA0'][plan_id]/field_no)]
>

Yes, thank you!  Since I left my XSLT book at home today, could you please
explain what this does?  I don't understand how the not statement works in
this circumstance (I've used it in others though).


Thanks again,
Jim

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.