[Home]  [List]  [News]  [Docs]  [FAQ]  [Downloads]  [Resources]  [About]
Search :
/Home /List

list4xt : Mailing list for the XT users community.

[list4xt] How to pass node set to a template?

Subject: [list4xt] How to pass node set to a template?

User: Website

From: James_Ma@i2.com
Date: 04/07/2001 - 00:38


Hi,

In my xsl, I tried to pass node set to a template. The code looks
like this:

<xsl:template match="/">

   <xsl:variable name="taglib1">
      <xsl:apply-templates select="data_set/data"/>
   </xsl:variable>

   <xsl:call-template name="process_node_set">
     <xsl:with-param name="taglib"><xsl:value-of select="xt:node-set
($taglib1)"/></xsl:with-param>
   </xsl:call-template>

</xsl:tempalte>

<xsl:template name="process_node_set">
  <xsl:param name="taglib"></xsl:param>
  <xsl:apply-templates select="($taglib)"/>
</xsl:template>

I got the following error when I processed the xml using above code:
"SAXException: org.xml.sax.SAXException: cannot convert to node-set"

Does anyone know how to pass node set to the template when using it?

Appreciate any help/advise.

-James

--
Mailing list for the XT users community.     (http://retailsymposium.com)
(mailto:list4xt-request@4xt.org?Subject=unsubscribe to unsubscribe)



Archive générée par hypermail 2b28 le 06/11/2001 - 11:46 CET

webmaster@4xt.org