This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: use variable in <xsl:if test=
- From: Mike Brown <mike at skew dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 1 Mar 2002 20:11:54 -0700 (MST)
- Subject: Re: [xsl] use variable in <xsl:if test=
- Reply-to: xsl-list at lists dot mulberrytech dot com
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