| 
 
Subject: [xsl] Microsoft msxml3.0 v. msxml4.0 From: "Sean Hayes" <sean@xxxxxxxxxxxxxx> Date: Thu, 20 Jun 2002 20:45:17 -0500  | 
Can anyone figure out why $row1 does not evaluate to a nodeset?
What do I need to do different about declaring row1?
This works fine in MSXML3.0 sp1
       <xsl:template name="grid">
               <xsl:param name="items"/>
               <xsl:param name="URL"/>
               <xsl:variable name="row1"><xsl:copy-of select="$items[position() > 0 and position() < 5]"/></xsl:variable>
               <xsl:variable name="row2"><xsl:copy-of select="$items[position() > 4 and position() < 9]"/></xsl:variable>
               <xsl:variable name="row3"><xsl:copy-of select="$items[position() > 8 and position() < 13]"/></xsl:variable>
               <xsl:variable name="row4"><xsl:copy-of select="$items[position() > 12 and position() < 17]"/></xsl:variable>
<!--   The following expression works -->
               <xsl:for-each select="$items[position() > 0 and position() < 5]">
                       <xsl:value-of select="@SKU"/><br/>
               </xsl:for-each>
<!--   This one below does not work???? ::-->
               <xsl:for-each select="$row1">
                       <xsl:value-of select="@SKU"/><br/>
               </xsl:for-each>
<!--   <I>Expression must evaluate to a node-set. -->$row1<--</I> -->
       </xsl:template>
Sean Hayes
 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
| Current Thread | 
|---|
  | 
| <- Previous | Index | Next -> | 
|---|---|---|
| Re: [xsl] Testing for presence of n, Dhruvraj Singh | Thread | Re: [xsl] Microsoft msxml3.0 v. msx, Mike Brown | 
| [xsl] Testing for presence of node, Joel Konkle-Parker | Date | Re: [xsl] XSLT 2.0 format-number() , Mike Brown | 
| Month |