Subject:Grouping/Following question Author:Mike Sapp Date:25 Mar 2008 06:37 AM Originally Posted: 25 Mar 2008 06:32 AM
Hello,
Im having trouble with a grouping XSLT conversion. Below are the input and desired output. If the <A> element contains the term 'Unit', i would like to be able to add the immediately following <row>'s data for the immediately identically named <B> elements as well as the resulting amounts for the <D> elements.
Subject:Grouping/Following question Author:James Durning Date:26 Mar 2008 12:31 PM Originally Posted: 26 Mar 2008 12:30 PM
Not sure if this will cover all your cases, but here it is for now:
Please note the placement of parentheses. Adding or removing a pair of parentheses in the wrong place will cause errors.
Subject:Grouping/Following question - Muenchian Author:Mike Sapp Date:06 Apr 2008 07:25 PM Originally Posted: 03 Apr 2008 05:12 AM
Hi James,
I have taken your advice and have gotten to a certain point where i seem to be hitting a wall.
Im attaching a sample of the input file and the XSLT which i have editted so far.
I need the conversion to only sum up the <royalty>, <amount>, <fee> etc elements of the following elements of rows which preceding <type> elements are named RELEASE and have the same <releaseid> and <order> number of the RELEASE rows <order> number. Otherwise i need the data just the way it is displaying a single TRACKS's row. Also, for the row which has been consolidated for a RELEASE, i need its type to be named RELEASE aswell to identify it. Im not sure how to get the when/otherwise coding to do this..
Looking fowrard to your feedback and thank you extremely much for your help,