|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: formatting xml output: inserting newlines between
Abie,
At 08:34 PM 9/10/2003, you wrote: In the case of node-set(), however, it is just about the commonest extension function out there (most processors have a version of it), so (given you have to mind your namespace bindings and all that) it's still quite portable. Also, its functionality will be built into XSLT/XPath 2.0, which also mitigates the problem of application-dependency over the longer term (not that there won't be adjustments to make). This is only one of a number of adjustments you will have to make to convert a 1.0 stylesheet into a 2.0 stylesheet. C'est la vie: it's the price of progress. (If it's not actually progress to you, stick with 1.0.) also, leaving aside compatibility issues, what do you think about constructing a tree within one xslt vs. having a 2-step transform? Again, it depends. Doing it all within one stylesheet may improve performance (note I say "may", certain frameworks may provide this advantage also to pipelines); but the stylesheets are harder to reuse/repurpose, debug etc. That is, it's the usual tradeoff. External factors, such as whether the stylesheet is a one-off or part of a production system, the run-time scenario and the rest all make a difference. No simple answer. Scratch where it itches. In the case of a stylesheet whose purpose is not a tree transformation, but rather a simple reformatting of the XML (that is, you're using XSLT not for its node manipulation but for the sake of driving your engine's serializer) -- I'd definitely say it should be kept separate from a regular-ol' stylesheet (that does node manipulations) simply because it can only be used in processors and situations where you're writing a file. This is an unnecessary price to pay, and since the combined stylesheet also becomes complex, brittle and hard to maintain -- why do it? Cheers, Wendell abie ====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ====================================================================== XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








