Re: [xsl] parameter use in XPath

Subject: Re: [xsl] parameter use in XPath
From: Daniel Veillard <daniel@xxxxxxxxxxxx>
Date: Fri, 24 Oct 2003 00:19:17 +0200
On Thu, Oct 23, 2003 at 10:02:17AM -0400, Saverio Perugini wrote:
> On Thu, 23 Oct 2003, Michael Kay wrote:
> 
> > In XSLT 2.0, you can write
> > 
> > <xsl:template match="*[name()=$keyword]">
> > 
> > which I suspect is what you meant.
> 
> Thanks and it is.
> 
> I'm using libxslt and apparently
> it implements XSLT 2.0 (documentation states
> it is based on libxml2) because the above
> seemed to work fine.

  haha, no libxslt implements only XSLT-1.0 + (most) EXSLT extensions
the name of the libxml2 library doesn't come from XPath2 or XSLT2 really :-)
The fact that it implements match="*[name()=$keyword]" is simply an oversight,
it doesn't change anything to my implementation which "forgot" to check
that restriction, it's a bug actually, sorry if this led to some confusion

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel@xxxxxxxxxxxx  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | 

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


Current Thread