Re: [xslt] XPath error



On Sat, Oct 30, 2004 at 06:42:17AM -0700, Dharm Baval wrote:
> Hi,
> 
> The error is at the line given below:
> 
> <xsl:variable name="staff_table"
> select="$myInfo/myinfo/myname/@display" />
> 
> Please let me know where the problem is.

  The problem is that you don't know XSLT:
   http://www.w3.org/TR/xslt#section-Result-Tree-Fragments
   "A result tree fragment is treated equivalently to a node-set that
    contains just a single root node. However, the operations permitted on
    a result tree fragment are a subset of those permitted on a node-set."

C.f. the exslt:node-set extension.

Daniel

-- 
Daniel Veillard      | Red Hat Desktop team 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]