xsl-list
[Top] [All Lists]

RE: looping through Elements stored in a variable..

2002-11-19 02:23:38
If it were possible to do this in XSLT 1.0 without using the
xx:node-set() extension, then the xx:node-set() extension would not have
been invented. You're out of luck, I'm afraid. Unless of course you use
an XSLT 1.1 or XSLT 2.0 processor.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 



-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com 
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of 
Laura Jenkins
Sent: 18 November 2002 17:12
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] looping through Elements stored in a variable..


Hello people,
i have the following xsl structure

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 <xsl:template match="/">
  <xsl:variable name="univ-var">
   <University-List>
    <University id = "1"> University1</University>
    <University id = "2"> University2</University>
    <University id = "3"> University3</University>
    <University id = "4"> University4</University>
   </University-List >
  </xsl:variable>
<!-- i want to iterate through this variable without usiing 
the extension nodeset..-->
<!-- something along the lines of .. -->
  <xsl:for-each select="$place-var/placements/placement">
  <xsl:value-of select="."/>
  </xsl:for-each>
 </xsl:template>
</xsl:stylesheet>

What i was doing obviousl;y does not work because it needs to 
be a nodeset. Can any one tell me how to do this without 
using the extension : nodeset. Its is  MANDATORY that I  DO 
NOT USE the extension nodeset. Thanks


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



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