xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] use variable in
Subject: Re: [xsl] use variable in <xsl:if test=
From: Matt Gushee <mgushee@xxxxxxxxxxxxx>
Date: Fri, 1 Mar 2002 20:07:59 -0700

On Fri, Mar 01, 2002 at 08:11:54PM -0700, Mike Brown 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.

Jeez, Mike. Do you always have to be right?

So you're right. I still have a strong hunch it isn't really what he
intended to do.

-- 
Matt Gushee
Englewood, Colorado, USA
mgushee@xxxxxxxxxxxxx
http://www.havenrock.com/

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



Current Thread

XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor