Subject: Re: [xsl] Problem with count iterate values From: J23 <duniaj@xxxxxxxxxxxx> Date: Thu, 17 Sep 2009 12:16:24 +0200 |
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@xxxxxxxxx>: > > 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. > ________________________________________________________________________ > > -- Pozdrawiam Jacek Dunia
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Problem with count iterat, David Carlisle | Thread | [xsl] Creating multiple nodes from , Birender Pal |
Re: [xsl] Problem with count iterat, David Carlisle | Date | Re: [xsl] Problem with count iterat, J23 |
Month |