string-to-nodeset

<xsl:include href="../plugins/tenandtwo-xslt-processor/xsl/string.xsl" />

<xsl:call-template name="string-to-nodeset">
    <xsl:with-param name="value" select="$value" />
    <xsl:with-param name="delimiter" select="$delimiter" />
    <xsl:with-param name="nodename" select="$nodename" />
</xsl:call-template>

TEST 1 : PPASS
string-to-nodeset :
– value = 1|2|3
– delimiter = |
– nodename = NODE

result :

  <RESULT>
    <NODE>1</NODE>
    <NODE>2</NODE>
    <NODE>3</NODE>
  </RESULT>


TEST 2 : PPASS
string-to-nodeset :
– value = one,two,three
– delimiter = ,
– nodename = OPTION

result :

  <RESULT>
    <OPTION>one</OPTION>
    <OPTION>two</OPTION>
    <OPTION>three</OPTION>
  </RESULT>