xsl-list
[Top] [All Lists]

Re: [xsl] Required item type of first operand of '/' is node(); supplied value has item type xs:string

2010-04-23 08:41:31
Martin Honnen wrote:
Jacobus Reyneke wrote:

The following template:
    <xsl:template match="c:*">
        <xsl:variable name="name" select="local-name()"/>
        <xsl:apply-templates
select="//c:smart-lookup-list/$name/description/node()"/>

You need
  select="//c:smart-lookup-list/*[local-name() = $name/description/node()"

Omitted a bracket it seems so use
select="//c:smart-lookup-list/*[local-name() = $name]/description/node()"

--

        Martin Honnen
        http://msmvps.com/blogs/martin_honnen/

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--