[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] variables
Subject: Re: [xsl] variables From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 9 Jun 2006 12:43:12 +0100 |
(As a general rule its easier if you post well formed xml rather than the browser view (which has spurious - related to the javascript outlining feature) Without seeing (at least some of) your input file it is hard to say. does your top level element look like <group name='Outgoings' or <group name='Tenant_Obligations' ?? Clearly as there is only one top level element, only one of these branches in your xsl:choose can be true. What number are you trying to calculate? it looks like perhaps you want the number of elements that match your various paths, but that is just <xsl:value-of select="count( group[@name='Outgoings'][gas_charge=1] | group[@name='Tenant_Obligations'][internal_repairs=] | group[@name='Tenant_Obligations'][internal_decorations=1] )"/> although again these can't all be true so you can never get 3 as an answer. David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] variables, Michael Kay | Thread | RE: [xsl] variables, Mark Williams |
Re: [xsl] list with comma delimiter, Christian Rasmussen | Date | Re: [xsl] list with comma delimiter, Jeff Sese |
Month |
Keywords