Subject: [xsl] Storing calculated values in global variables ? From: "Chitra Lalita Madhwacharyula" <iscp1059@xxxxxxxxxx> Date: Tue, 12 Nov 2002 16:14:54 +0800 |
Hello, I am a new user of XSLT and am not very good with it. Can anyone please help me with this problem ? If I have the following 2 XML Documents Doc1.xml <?xml version="1.0"?> <Testing> <Range> <From>500</From> <To>300</To> <From>300</From> <To>400</To> <From>600</From> <To>1000</To> </Range> </Testing> Doc2.xml <?xml version="1.0"?> <Testing> <Range> <From>100</From> <To>300</To> <From>200</From> <To>400</To> <From>700</From> <To>1000</To> </Range> </Testing> I can sort the elements from both the documents in ascending or descending order and extract the maximum and minimum value elements using a single stylesheet. But how do I perform mathematical operations on the sorted elements ? For e.g if I want to add the first and the last <From> element from the sorted list of <From> elements how can I do this and store this value in a global variable so that it can be reused ? Thanx, Chitra XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XSL-Grouping data, Anupama Malla | Thread | RE: [xsl] Storing calculated values, Michael Kay |
[xsl] How can I obtain a JSP from a, Marcial Atienzar Nav | Date | RE: [xsl] Navigationg thru XML Elem, bryan |
Month |