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

Re: Testing if an attribute name is in a list of names

Subject: Re: Testing if an attribute name is in a list of names
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Thu, 19 May 2005 13:28:23 +0000
sql is in
Paul,


if attribute-name is in list-of-attribute-names output attribute-value

This is what i posted does, in set-based fashion, to use a SQL term. What you indicated originally was more "cursor based".



Where list-of-attribute names is generated once in advance. Then it would be just O(n) where n is the number of rows.

Sure, just pre-select them into a variable, and use that in the inner loop.



That's getting closer to what I want, at least in terms of neatness. I'm just wondering if we can get rid of the nested for-each.

Off the cuff, not if you want to retain the conceptual and algorithmic difference between processing a parent (row) and processing its children (col). The alternative would be to select all cols for all rows and interleave row info, or vice versa.


rows in my case.  I was just wondering whether there is an idiom in
XSL that is analogous to my pseudocode above.  I can't seem to hit on
it myself.

Sorry, can't help you there. I'm new to this myself.


Regards,

--A

_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to get there! http://lifeevents.msn.com/category.aspx?cid=Retirement


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.