[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Usage of RTF with Grouping and Count

Subject: RE: Usage of RTF with Grouping and Count
From: "Ranjan K. Baisak" <ranjanbaisak@xxxxxxxxx>
Date: Mon, 6 Dec 2004 21:08:11 -0800 (PST)
rtf description
I am using two RTF in this case.
One is parentRTF and childRTF. parentRTF conatains key
to get all childs. In such case "agwore" is parent and
"agwore1" and "agwore3" are from childRTF. It might be
possible that one elment in parentRTF can be child of
another element in parentRTF. This is the example of
"agwore" also in parentRTF but child of "New2".
My RTF is having a complex structure so after
manipulating I created this RTF from parentRTF and
childRTF.

If you want xml and stylesheet then I can send  the
same too.

regards,
Ranjan
--- Michael Kay <mike@xxxxxxxxxxxx> wrote:

> > In my stylesheet, I have a RTF variable which
> contains
> > following xml tree.
> > 
> > <val>agwore</val><desc>wore
> > description</desc><totalquantity></totalquantity>
> > <val>agwore1</val><desc>wore
> >
> description1</desc><totalquantity>6</totalquantity>
> > <val>agwore3</val><desc>wore
> >
> description3</desc><totalquantity>7</totalquantity>
> > <val>New1</val><desc>New
> > description</desc><totalquantity> </totalquantity>
> > <val>agwore1</val><desc>wore
> >
> description1</desc><totalquantity>6</totalquantity>
> > <val>agwore3</val><desc>wore
> >
> description3</desc><totalquantity>7</totalquantity>
> > <val>New2</val><desc>New2
> > description</desc><totalquantity> </totalquantity>
> > <val>agwore</val><desc>wore
> >
> description1</desc><totalquantity>6</totalquantity>
> > <val>agwore3</val><desc>wore
> >
> description3</desc><totalquantity>7</totalquantity>
> > 
> > If you can see above "agwore" contains "agwore1
> and
> > 'agwore3" so its <totalquantity> should be
> agwore1's
> > <totalquantity> and <agwore3>'s <totalquantity>.
> 
> How do you know that agwore contains agwore1 and
> agwore3, but does not
> contain New1? Is it simply that a containing element
> has no value for
> totalQuantity?
> 
> How do you compute the contents of this variable?
> Isn't it possible to
> create one or two extra levels of hierarchy in the
> structure, to make your
> life easier when it comes to processing the data?
> 
> Michael Kay
> http://www.saxonica.com/
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Yahoo! Mail - now with 250MB free storage. Learn more.
http://info.mail.yahoo.com/mail_250

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.