[xsl] passing a node-set variable between an imported xsl and back.

Subject: [xsl] passing a node-set variable between an imported xsl and back.
From: heiko@xxxxxxxxxx
Date: Tue, 31 Dec 2002 02:54:16 -0800 (PST)
Hi XSL-List Members,

before i forget: best wishes for the next year.

here is my problem:

i wrote something like a parser, for an xml file that
is needed in i three xsl files. off course i want to
import this things because it will change often.

in the parser i create an node-set as variable like
<!-- create a name of pack -->

<xsl:variable name="cjversion">
<xsl:variable name="pack">
     <xsl:when test="contains(articleName,'ESD')">
      <xsl:value-of select="normalize-space('ESD')"/>
      <xsl:value-of select="normalize-space('BOX')"/>
later i create an nodeset in the same file with the
       <xsl:value-of select="$shortname"/>
<!-- close cjversion variable -->
<xsl:variable name="cjNO">
	<xsl:call-template name="makeIndex">
	 <xsl:with-param name="newnode"
that is my vartiable node-set i would like to import it

<xsl:import href="http://localhost/parser.xsl"; />

and use it here in the three other files like this:

<select width="267" name="A">
<xsl:for-each select="xalan:nodeset($cjN0)/key">
	<xsl:attribute name="value"><xsl:value-of
	<xsl:value-of select="."/>

how do i have to realize it ! any help would be great.

thanks in advance.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread