[XSL-LIST Mailing List Archive Home]
[Reply To This Message]
Re: Is it OK for xsl:output to affect the construction
Subject: Re: Is it OK for xsl:output to affect the construction of an unserialized result tree?|
From: Barry Lay <blay@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Jul 2004 13:14:48 -0400
Hopefully it doesn't matter how the processor manages the data
internally. I would expect that if I change my mind regarding output
properties in a pipeline none of those decisions are irreversable. That
is, if I decide to set the output type to HTML, then to text, then to
XML, and perhaps differ on indenting along the way, each time using a
null transformer, the end result when I save the data to a file it would
be as if the final properties were applied to the original data. Once I
send the data to a text file then I am committed.
This is my interpretation of "serialization". If the intent of the
specification is that the DOM is a serialized form and that output
settings do get applied in a way that is noticeable in the DOM then
hopefully someone can correct my understanding of it.
Joseph Kesselman wrote:
BTW, given that the setOutputProperty(OutputKeys.METHOD, "xml") on the
Transformer can be used to override the value of the method attribute in
the xsl:output element, I think we're already pretty much where we need to
be. It *is* still a serialization, and things like the indentation
directive still come into play... but if you really want to see all the
elements that the stylesheet normally suppresses in text mode, you can get
All of this is personal opinion, not that of IBM or Apache or the
government of Outer Vardabedia. My apologies if I've missed anything
critical. But I really think we need to be able to unplug a
serialize-and-reparse connection and plug in direct pipelining, or split a
pipeline into serialize-and-parse, and expect to get something reasonably
close to The Same Result out the far end... and I think that's what the
customers will expect the default to be.
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk
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