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

Re: formatting xml output: inserting newlines between

Subject: Re: formatting xml output: inserting newlines between generated attributes
From: "Abie Hamaoui" <ahama5@xxxxxxxxxxx>
Date: Tue, 09 Sep 2003 19:34:33 +0000
new lines xsl fo
Wendell,

If you kept it in its own box, completely separate from other transformation logic, it would be fine. The nightmare would be if you tried to combine this with ordinary transformation logic, which typically would perform a mapping of source elements to result elements, do grouping, conditional generated text, etc. Both things happening in a single stylesheet would be a lot to try to keep under control and a pain to maintain. Also, writing output to text locks you into a particular processing model (can't chain the transform as easily, can't use it in display engines that don't support the 'text' output method, and so forth).

Writing a transform to do such reformatting on arbitrary input, and having it be the final step of a two- (or multi-) step process, is more thinkable. Three or four templates would do everything you would need. Is there any reason you can't do it that way? (Or maybe you're saying that's what you want to do.)

It does make more sense to do it in the way you're suggesting. I appreciate the modularization advantages. We actually do already have a 2 step transform, and my hesitation to have yet another stage is only in terms of efficiency. 2 steps is ostensibly faster than 3. Is there a lot of overhead in invoking the transform process multiple times? say I wanted to do it 10, 20 or 60 times?


Abie

_________________________________________________________________
Get a FREE computer virus scan online from McAfee. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963



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.