[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
[xsl] Xsl:variable problem ??
Subject: [xsl] Xsl:variable problem ?? From: Dipesh Khakhkhar <dkhakhkh@xxxxxxxxxxxxxxx> Date: Thu, 21 Aug 2003 16:53:30 -0400 |
Hi, I want to get value of attributes for a particular node having maximum attributes. Fort this i need to use global variable to store the final value and one global variable to store the maximum no. of attributes in a given node to compare with the other nodes. Syntax might not be proper in the following snippet <!-- Defining Global variables --> xsl:var name=colHeaderForTable1; xsl:var name=maxColNoForTable1 select="number(0)"; <!-- Keeping maximum number of attributes for the particular node as zero --> xsl:for-each //Table1 xsl:var name=temp select ="count(no. of columns in this table)"; <! --getting column count for the current table --> <!-- For the firt time this comparision will be true and in the global variable i will get names of the attribute name --> if (temp > maxColNoForTable1) colHeaderForTable1={"Somevalue", "Somevalue",Getting each attribute name followed by seperator} </xsl:for-each> <!-- In this way I want the names of the attributes for a node having maximum no. of attributes. The problem here is i can not change the variable value, so is there any other way to achieve the same. I have not defined the variable inside for loop since I would need that value in future processing of my document. So can i approach this problem ?? Eagerly waiting for reply. Regards, Dipesh XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Unexpected sort order on , Rick Taylor | Thread | AW: AW: [xsl] Restraining specific , Markus Abt |
[xsl] Unexpected sort order on a mu, Wiepert, Mathieu | Date | AW: AW: [xsl] Restraining specific , Markus Abt |
Month |