|
Subject: Re: [xsl] Problem with count iterate values From: Martin Honnen <Martin.Honnen@xxxxxx> Date: Sat, 19 Sep 2009 19:46:07 +0200 |
xml input: <?xml version="1.0"?> <?xml-stylesheet href="xsl.xsl" type="text/xsl" ?> <elements> <Row Nr="1"> <name>Mark</name> <value>1</value> <code>22</code> </Row> <Row Nr="2"> <name>Mark</name> <value>1</value> <code>1</code> </Row> <Row Nr="3"> <name>Paul</name> <value>2</value> <code>2</code> </Row> <Row Nr="4"> <name>Mark</name> <value>1</value> <code>2</code> </Row> <Row Nr="5"> <name>Peter</name> <value>44</value> <code>2</code> </Row> <Row Nr="6"> <name>Peter</name> <value>1</value> <code>0</code> </Row> <Row Nr="7"> <name>Paul</name> <value>11</value> <code>1</code> </Row> <Row Nr="8"> <name>Peter</name> <value>11</value> <code>1</code> </Row> <Row Nr="9"> <name>Mark</name> <value>13</value> <code>0</code> </Row> <Row Nr="10"> <name>Peter</name> <value>13</value> <code>1</code> </Row> <Row Nr="11"> <name>Paul</name> <value>14</value> <code>1</code> </Row> </elements>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:exsl="http://exslt.org/common" exclude-result-prefixes="exsl" version="1.0">
<xsl:variable name="cols-rtf">
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</xsl:variable><html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Example</title>
</head>
<body>
<table border="1">
<thead>
<tr>
<th>Name</th>
<th colspan="5">Values repeated n time(s)</th>
</tr>
<tr>
<th></th>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</thead>
<tbody>
<tr>
<td>Mark</td>
<td>0</td>
<td>0</td>
<td>1 (values 1)</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>Paul</td>
<td>3 (values 2, 11, 14)</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
<tr>
<td>Peter</td>
<td>3 (values 44, 11, 13)</td>
<td>0</td>
<td>0</td>
<td>0</td>
<td>0</td>
</tr>
</tbody>
</table>
</body>
</html>Martin Honnen http://msmvps.com/blogs/martin_honnen/
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: [xsl] Problem with count iterat, J23 | Thread | Re: [xsl] Problem with count iterat, J23 |
| Re: [xsl] Problem with count iterat, J23 | Date | Re: [xsl] Problem with count iterat, J23 |
| Month |