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

-- 
Daniel Veillard      | Red Hat Network http://redhat.com/products/network/
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]