Re: [xslt] Xpath on variables?

On Mon, Aug 06, 2001 at 05:00:58PM +0200, Heiko Rupp wrote:
> Hi,
> it looks like the following is failing:
> <xsl:copy-of select="$foo/PATH"/>
> xsltproc date.xsl date.xml
> Error xpath.c:7416: Invalid type

  this looks really wrong at least
  <xsl:copy-of select="{$foo}/PATH"/>

  seems required and this may have to be cast to a node-set()
if $foo is a result tree fragment.

> Shall I file a (more detailed) bug report?

  It may help understand the problem, but if it's a basic syntax error
well, fixing it first would be better.

> It looks like Xalan can handle this.

  Eeeek ! Send them a bug report !


Daniel Veillard      | Red Hat Network  | libxml Gnome XML XSLT toolkit | Rpmfind RPM search engine

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