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

Re: use variable in <xsl:if test=

Subject: Re: use variable in <xsl:if test=
From: Mike Brown <mike@xxxxxxxx>
Date: Fri, 1 Mar 2002 20:11:54 -0700 (MST)
Re:  use variable in <xsl:if test=
Matt Gushee wrote:
> '*' means 'any child _element_
> of the current context node'. At the top level of the stylesheet,
> there are no child elements.

That's not correct. Per section 11.4 of the spec, top-level variables are
evaluated with the source tree's root node as both the current node and the
current node list. Therefore, with a well-formed source tree, '*' in a
top-level variable will always be the document element.

   - Mike
  mike j. brown                   |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.