I found a very similar version of the following xml and xsl
online. In this code namespaces are used in order to subtract
the sums for us and them. My xml code is structured
similarly, and was summing values for all of the xml. The xsl
now needs to subtract in a similar way to this example. Is this the
best way to do it? By assigning namespaces to the xml tags?
Or is there a better alternative?
Well, it's certainly one way of doing it and there's nothing wrong with
using namespaces in that way. However, if you have control over the
source why not use the elements position within the hierarchy to
indicate which organisation:
<us>
<item>
<value>1000</value>
</item>
</us>
<them>
<item>
<value>5000</value>
</item>
</them>
Cheers
andrew
--~------------------------------------------------------------------
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>
--~--