[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Convert string to a list of nodes

Subject: Convert string to a list of nodes
From: Alexandra Duda <oladuda@xxxxxxxxx>
Date: 04 Dec 2001 12:32:30 +0100
convert string to nodelist
Hello all,

I have the following problem:
I have a template that should perform some action for a set of nodes. 
This set can contain a various number of elements, and each element is unique within my XML document scope. This template looks moreless like this:
<xsl:template name="maintemplate">
  <xsl:param name="nodelist"></xsl:param>
  <!-- some other params -->

  <!--
   <![CDATA[
       here I want to proceed each node, that is listed in nodelist,
       something like <xsl:for-each> <xsl:call-template name="elemtempl">
       with some parameters.
      ]]> 
  -->
   
</xsl:template>

When I call this template, it should look like this:

<xsl:call-template name="maintemplate">
  <xsl:with-param name="nodelist">node1;node2;node3;node4</xsl:with-param>
   <!-- some params... -->
</xsl:call-template>

My question is: How can I convert the string from nodelist to set of nodes?
Or maybe there is another way to do, what I want to do, and my solution is not the best way ? ;-)
Thanx for any help

ps.
my XML document looks moreless like this:
<elem1>
  <node1>value1</node1>
  <node2>value2</node2>
  <node3>value3</node3>
  ...
  <node7>
    <subnode1/>
    ...
  </node7>
</elem1>
...

Best regards,
Alexandra

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.