Subject: number formatting.... From: "Khaja, Saif" <Saif.Khaja@xxxxxxxxxxxxxxx> Date: Thu, 15 Jun 2000 09:32:15 -0700 |
Hi there, I have two sibling subtree's. And I have to produce a master-detail form of representation. Its like an Inner FOR Loop in an outer FOR Loop. eg: <xsl:for-each select="//number1"> <xsl:number value="position()" format="1."/> <xsl:value-of select="@N1Key"/> <xsl:value-of select="@Name"/> <xsl:variable name="varKey" select="@N1Key"/> <xsl:for-each select="ancestor::*/number2"> <xsl:if test="$varKey = @N2Key" > <xsl:number format="a."/> <xsl:value-of select="@BKey"/> <xsl:value-of select="@Qty"/> </xsl:if> </xsl:for-each> </xsl:for-each> /* ******************************* */ Now in the inner FOR Loop, the number format produces the actual position sequence, which I dont want in this case. I want the numbering to be related to the inner FOR Loop number. i.e. should start with "a." every time it enters the FOR Loop the first time.... Output: 1. Key1 Name1 a. RKey1 Qty1 b. RKey2 Qty2 c. RKey3 Qty3 2. Key2 Name2 a. RKey6 Qty6 b. RKey9 Qty9 ..... Is there any way, I can achieve this sequence.... Thanx in advance, Saif Khaja XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: xsl:script and Xalan ?, Warren Hedley | Thread | Re: number formatting...., Mike Brown |
xsl:script and Xalan ?, Philippe D'Hont | Date | Re: Building a tab-delimited file i, ed billings |
Month |