xsl-list
[Top] [All Lists]

Re: [xsl] variables

2006-06-09 06:15:30


(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[(_at_)name='Outgoings'][gas_charge=1] |
group[(_at_)name='Tenant_Obligations'][internal_repairs=] |
group[(_at_)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
________________________________________________________________________

--~------------------------------------------------------------------
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>
--~--

<Prev in Thread] Current Thread [Next in Thread>