RE: [xsl] variables

Subject: RE: [xsl] variables
From: "Mark Williams" <mark@xxxxxxxxxxxxxxxxx>
Date: Fri, 9 Jun 2006 16:55:05 +0100
Thanks guys. The root node is Root not group. I will change my xsl and
see if this makes a difference.


Mark Williams

________________________________

GWSmartmove

24 St Andrews Crescent, Cardiff, CF10 3DD

E: enquiries@xxxxxxxxxxxxxxxxx
T: 02920375901
F: 02920375909

www.gwsmartmove.co.uk

The contents of this email and any attachments are the property of
Gimblett Williams Solicitors Limited and are intended for the
confidential use of the named recipient(s) only. If they have been
received by you in error please maintain confidentiality, notify us,
destroy copies and delete them from your computer. It is the
responsibility of the recipient to scan this email for viruses.


-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: 09 June 2006 12:43
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] variables



(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