[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: "Paul A. Hoadley" <paulh@xxxxxxxxxxxxxx>
Date: Fri, 20 May 2005 12:55:06 +0930
xsl is in list
Hi Aron,

On Thu, May 19, 2005 at 01:28:23PM +0000, Aron Bock wrote:

> >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".

Yes, I suppose you are right.  I guess I'm just fixating on the nested
for-eachs, since you're collecting the (column name) attributes from
the source tree on each iteration, aren't you?  That just feels
expensive to me.  Maybe it's not.

> >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.

OK, that's more like what I was thinking of.  In fact, I tried to do
that and failed.  (I think your next post gives an implementation.)


-- 
Paul.

w  http://logicsquad.net/
h  http://paul.hoadley.name/

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.