xsl-list
[Top] [All Lists]

[xsl] How to copy filtered rows from a nodeset

2009-05-14 08:11:41
 
Hi, 
 
I want to filter a node-set based on some complex criteria, copy it to a
variable and then use this subset for futher processing. I'm not able to
get the following to work. Could you please tell what the problem is.
 
XSL processor -- .net 2.0
xsl stylesheet version 1.0
 
 
<xsl:variable name="filteredrows">
    <root>
     <xsl:for-each select="$Rows">

      <xsl:variable name="product" select="@Product"></xsl:variable>
      <xsl:variable name="bitteam"
select="/dsQueryResponse/Products_Inventory/Rows/Row[(_at_)Title=$product]/@T
eam_x0020_Name"></xsl:variable>

      <xsl:variable name="varPTeam">
           <xsl:call-template name="replace-string">
                <xsl:with-param name="text" select="$bitteam"/>
                <xsl:with-param name="replace" select="'amp;'"/>
                <xsl:with-param name="with" select="''"/>
           </xsl:call-template>
      </xsl:variable>
 
      <xsl:if test="$Team2=$varPTeam">
      
           <xsl:copy-of select="." />
      
      </xsl:if>
     </xsl:for-each>
    </root>
   </xsl:variable>

Thanks in advance
Reshma.

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error. Morgan Stanley may monitor and store emails to the 
extent permitted by applicable law.

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>