xsl-list
[Top] [All Lists]

Re: Is it OK for xsl:output to affect the construction of an unserialized result tree?

2004-07-21 10:14:48
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
'em.

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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



<Prev in Thread] Current Thread [Next in Thread>