[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: how to find position - please help
<xsl:attribute name="name"> <xsl:value-of select="position()"/> </xsl:attribute> -----Original Message----- From: aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx [mailto:aruniima.chakrabarti@xxxxxxxxxxxxxxxxxx] Sent: Monday, December 09, 2002 9:58 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: how to find position - please help Hi All, I need to find position of a node which I am selecting using value of & a set of predicates... please help... really sorry for asking probably a repeated and an easy question but rite now deadline is here & after straight 13 hours I am a bit fuzzy... so please help on this... regards, aruniima <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema"> <xsl:variable name="branch" select="document('branchdata.xml',/*)/node()"/> <xsl:template match="z:row"> <xsl:variable name="user_id" select="@COD_USER_ID"/> <xsl:variable name="user_no" select="@COD_USERNO"/> <xsl:variable name="cc_brn" select="@COD_CC_BRN"/> <xsl:variable name="mnt_stat" select="@FLG_MNT_STATUS"/> <xsl:variable name="found_pos"> <xsl:value-of select="$branch//z:row[@COD_USER_ID=$user_id and @CTR_USER_NO=$user_no and @COD_CC_BRN=$cc_brn and @FLG_MNT_STATUS=$mnt_stat]/@COD_USER_ID"/> </xsl:variable> <xsl:if test="string-length($found_pos)=0"> <xsl:value-of select="$user_id"/> --- <xsl:value-of select="$found_pos"/> <br/><br/> </xsl:if> </xsl:template> </xsl:stylesheet> Regards, aruniima XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list MASTEK Investing in relationships In the US, we're called MAJESCO ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Opinions expressed in this e-mail are those of the individual and not that of Mastek Limited, unless specifically indicated to that effect. Mastek Limited does not accept any responsibility or liability for it. This e-mail and attachments (if any) transmitted with it are confidential and/or privileged and solely for the use of the intended person or entity to which it is addressed. Any review, re-transmission, dissemination or other use of or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. This e-mail and its attachments have been scanned for the presence of computer viruses. It is the responsibility of the recipient to run the virus check on e-mails and attachments before opening them. If you have received this e-mail in error, kindly delete this e-mail from all computers. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|