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

How to copy filtered rows from a nodeset

Subject: How to copy filtered rows from a nodeset
From: "Raveendran, Reshma \(BI PORTALS\)" <Reshma.Raveendran@xxxxxxxxxxxxxxxxx>
Date: Thu, 14 May 2009 17:40:42 +0530
  How to copy filtered rows from a nodeset
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[@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.

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.