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

Re: self axis vs .

Subject: Re: self axis vs .
From: Florent Georges <lists@xxxxxxxxxxxx>
Date: Sat, 7 Jun 2008 13:40:42 +0200 (CEST)
Re:  self axis vs .
Michael Kay wrote:

  Hi

> >     *[not(node-name(.) = $to-exclude/node-name(.))]

> And there I was thinking "there's no point doing lazy construction
> of trees; no-one in their right mind is going to create an element
> and then only access its name".

  I did :-)  I find this is the most natural way to create a sequence
of QName in XSLT, more than using the xs:QName() ctor.

> I think I prefer the more direct:

> * except (elem1 | ns:elem)

  Yes, right.

  Actually the use of the sequence of elements is useful nevertheless,
in a specific case: to be able to parameterize an expression (in a
reusable function, or to let a user or another stylesheet to set other
elements trough a parameter).

  Regards,

--drkm





















      _____________________________________________________________________________ 
Envoyez avec Yahoo! Mail. Une boite mail plus intelligente http://mail.yahoo.fr

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.