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:

  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 Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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