Subject: [xsl] Get the maximum of a set of values From: birgit.zimmermann@xxxxxxxxxxxxxxx Date: Tue, 2 Nov 2004 21:38:41 +0100 |
Hello, I've got the following problem: I've got an index xml file that refers to some other xml files like that: <!-- index file --> <index> <entry><xml>X1</xml>...</entry> <entry><xml>X2</xml>...</entry> <entry><xml>X3</xml>...</entry> ... <!-- and others --> </index> <!-- X1.xml --> <entry> <item number="3" /> ... </entry> <!-- X2.xml --> <entry> <item number="7" /> ... </entry> <!-- X3.xml --> <entry> <item number="2" /> ... </entry> The XSL file I have, belongs to the index file. In the xsl file I can get each value of the attribute number like this: <xsl:for-each select="index/entry"> <xsl:variable name="vXML"><xsl:value-of select="xml" />.xml</xsl:variable> <xsl:variable name="vNumber" select="document($vXML)/entry/item/@number" /> </xsl:for-each> But my problem is, that I want to find the maximum of the attribute number / the variable vNumber! This value should become a global variable. Does anyone has an idea?! Thanks BirgitZ ------------------------------------------------- This mail sent through IMP: http://horde.org/imp/
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Auto sizing of text, J.Pietschmann | Thread | Re: [xsl] Get the maximum of a set , Werner, Wolfgang |
RE: [xsl] Collapsing run-on tag cha, Wendell Piez | Date | Re: [xsl] General FO Implementation, Jirka Kosek |
Month |