|
Subject: [xsl] Counting and double sorting on parameter From: Xavier Outhier <xavier.outhier@xxxxxxxxxxx> Date: Thu, 08 Feb 2007 13:24:09 +0100 |
I would like to make a summary of a file by counting the occurence of the value of a parameter of a certain element. I've used 6. Dynamically counting an attribute from http://www.dpawson.co.uk/xsl/sect2/N2018.html. I've problem to sort the result. Can someone have an idea? What are the change I have to do in the XSLT?
Below are my data 1) the XML input 2) The expected output: 3) the current output 4) the complete XSL
1) the XML input
<?xml version="1.0" encoding="UTF-8"?>
<tiptop>
<qwerty>
<CPU partNum="1234"/>
<CPU partNum="234"/>
<CPU partNum="234"/>
<CPU partNum="1234"/>
<CPU partNum="54"/>
</qwerty>
<qwerty>
<CPU partNum="89"/>
<CPU partNum="94"/>
<CPU partNum="934"/>
<CPU partNum="934"/>
</qwerty>
<CPU partNum="12"/>
<CPU partNum="26"/>
</tiptop>partNum Qty 1234 2 234 2 934 2 12 1 26 1 54 1 89 1 94 1
partNum Qty 1234 2 234 2 54 1 89 1 94 1 934 2 12 1 26 1
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Xpath for a range of elem, Anderson, Paul | Thread | RE: [xsl] Counting and double sorti, Kolací Tomáš |
| Re: [xsl] Newbie question on XSL tr, Abel Braaksma | Date | RE: [xsl] Newbie question on XSL tr, Michael Kay |
| Month |