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

Re: xsl:for - Only for existing nodes, how?

Subject: Re: xsl:for - Only for existing nodes, how?
From: "Liron" <magilam@xxxxxxxxxxxxxxxx>
Date: Tue, 21 Feb 2006 18:16:57 +0100
david liron
Hi David,

Thank you again for your reply, you helped a lot

Liron

----- Original Message ----- From: "David Carlisle" <davidc@xxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, February 21, 2006 6:10 PM
Subject: Re: xsl:for - Only for existing nodes, how?




Wouldn't it act just the same? I'm talking in a performance sense.

No, your solution tests that there is an item1 and if so outputs item1 and item2 (the latter may be empty) mine checked that there was an item 1 and an item2.

If you have

<control>
 <item1><data>x</data></item1>
</control>

your solution would output x but mine would output nothing as there is
no item2. I can't say which you need though.

David

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.