XSLT Help

2010-09-10 Thread CRANFORD, CHRIS
I am struggling with the best way to parse the following XML section from my document with XSLT using FOP. document usage record year2010/year month1/month quantity1/quantity /record record year2009/year month3/month quantity2/quantity

AW: XSLT Help

2010-09-10 Thread Georg Datterl
: XSLT Help I am struggling with the best way to parse the following XML section from my document with XSLT using FOP. document usage record year2010/year month1/month quantity1/quantity /record record year2009/year month3/month quantity2/quantity

RE: XSLT Help

2010-09-10 Thread Eric Douglas
[mailto:chris.cranf...@setech.com] Sent: Friday, September 10, 2010 10:23 AM To: fop-users@xmlgraphics.apache.org Subject: XSLT Help I am struggling with the best way to parse the following XML section from my document with XSLT using FOP. document usage record year2010/year month1/month

RE: XSLT Help

2010-09-10 Thread CRANFORD, CHRIS
No, all I was showing was the expected output. I still need to code the XSLT to actually generate that. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Friday, September 10, 2010 9:33 AM To: fop-users@xmlgraphics.apache.org Subject: RE: XSLT Help You

RE: XSLT Help

2010-09-10 Thread Eric Douglas
: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] Sent: Friday, September 10, 2010 10:42 AM To: fop-users@xmlgraphics.apache.org Subject: RE: XSLT Help No, all I was showing was the expected output. I still need to code the XSLT to actually generate that. -Original Message- From: Eric

RE: XSLT Help

2010-09-10 Thread CRANFORD, CHRIS
- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Friday, September 10, 2010 9:48 AM To: fop-users@xmlgraphics.apache.org Subject: RE: XSLT Help I was just confused then where you said your XSLT starts with 2010 You apparently meant to say your XSLT does nothing

Re: XSLT Help

2010-09-10 Thread Lloyd Cotten
will need with this. -Original Message- From: Eric Douglas [mailto:edoug...@blockhouse.com] Sent: Friday, September 10, 2010 9:48 AM To: fop-users@xmlgraphics.apache.org Subject: RE: XSLT Help I was just confused then where you said your XSLT starts with 2010 You

RE: XSLT Help

2010-09-10 Thread CRANFORD, CHRIS
@xmlgraphics.apache.org Subject: Re: XSLT Help Hi Chris, I was attempting to do something similar in the past week, and came across the following discussion on the issue. I found it helpful: http://nick-dunn.co.uk/article/an-alternative-for-loop-using-xslt-and-te mplate-callbacks/ Lloyd

RE: XSLT Help

2010-09-10 Thread Syd Bauman
I think the previous advice to ask on the xsl-list (Mulberry) is sound. I don't know for sure, but it strikes me that iterating over records may not be the best approach. Perhaps something like the following structure (untested) would help make things clearer. ?xml version=1.0 encoding=UTF-8?

RE: XSLT Help

2010-09-10 Thread Eric Douglas
, CHRIS [mailto:chris.cranf...@setech.com] Sent: Friday, September 10, 2010 11:23 AM To: fop-users@xmlgraphics.apache.org Subject: RE: XSLT Help Not necessarily write it for me, just direction. I have been playing with recursive template calls all morning, and thus far this is what I have arrived

RE: XSLT Help

2010-09-10 Thread Syd Bauman
I'm not sure what you mean, but sum( //record[child::year='2009']/quantity ) seems to work for me. Actually, it appears the sum function to total the quantity is made for matching tags. Since you need to match the values I can't see an easy way to code that. I would just use a variable to