Sorry, my fault. Correct xsl.
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="/" >
<html>
<body>
<xsl:apply-templates />
</body>
</html>
</xsl:template>
<xsl:key name="list" match="elements/Row" use="value" />
<xsl:template match="elements">
<table border="1" bordercolor="black">
<thead>
<tr>
<th>How many times</th>
</tr>
</thead>
<tbody>
<xsl:for-each select="Row[count(. | key('list',
value)[1]) = 1]">
<tr>
<td><xsl:value-of select="count(key('list',
value)[code !=
'0']/value)"/></td>
</tr>
</xsl:for-each>
</tbody>
</table>
</xsl:template>
</xsl:stylesheet>
2009/9/17 David Carlisle <davidc(_at_)nag(_dot_)co(_dot_)uk>:
The code you posted does not run as you have not defined this key.
"count(key('list_1',
and this is not well formed
<td><xsl:value-of select="count(key('list_1', value)[code !=
'0']/value)"/>
</tr>
It's more helpful to post running code, even if it gets the wrong
answer.
David
________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs.
________________________________________________________________________
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--
Pozdrawiam
Jacek Dunia
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--