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

Re: Side-effects, state, internal references

Subject: Re: Side-effects, state, internal references
From: "Kent Fitch" <kent.fitch@xxxxxxxxxxxx>
Date: Thu, 7 May 1998 08:50:24 +1000
excel internal references
Sorry for such a late followup to this thread.  One problem I am having
caused by not being able to use "global" state in XSL (although using it
a
little guiltily in msxsl) is not related to output element counting but
something even simplier:

We have an XML tree which we need to make available to "legacy" systems,
which want to import it into Excel, etc in comma delimited format.
Using
XSL to produce this is fine except for coping with "repeating groups"
where the "child" lines need to have information from the parent.

Eg, an employee may have multiple deductions.  For ease of procesing in
the Excel environment, the imported file looks something like

E,10156,"W Smith", ...  ["E" is a rec type, 10156 is emp#]
D,10156,101.45,"Health insurance",.. [D = deduction
D,10156,98.55,"Union dues",...        10156 is emp#
E,10233,"F Jones",...
D,...etc

With XSL we *can* go up the XML tree to get the employee element and get
the emp#, but having to do this on every sub-element is expensive,
whereas
setting a "current global employee #" and using it when outputting the
child records is simple and fast.

Kent Fitch                           Ph: +61 2 6276 6711
ITS  CSIRO  Canberra  Australia      kent.fitch@xxxxxxxxxxxx


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.