Re: [xslt] Xpath on variables?



On Mon, Aug 06, 2001 at 11:11:59AM -0400, Daniel Veillard wrote:
> 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"/>

  Oops no, it should be legal there.

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

  Probably the actual problem.

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]