Re: [xslt] Variables broken in XPath?



On Sat, Dec 10, 2005 at 07:46:01PM +0300, Mikhail Zabaluev wrote:
> Hello,
> 
> Has anyone looked into this problem:
> http://bugzilla.gnome.org/show_bug.cgi?id=318005

  No and yes. No because I didn't, looking at it, yes it's not a bug.

> Why does libxslt 1.1.15 have trouble looking up variable references in
> predicates, where Xalan and even earlier versions of libxslt did fine?
> Maybe I'm missing something?

  <xsl:template match="foo[. = $a]">

 using a variable reference in a match pattern is forbidden by the spec. This
eas fixed in the last year or so, and is now properly reported as invalid.

Daniel

-- 
Daniel Veillard      | Red Hat http://redhat.com/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]