[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: variables
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: 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 ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|