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

Re: Why Core Flow Objects

Subject: Re: Why Core Flow Objects
From: Paul Prescod <papresco@xxxxxxxxxxxxxxxx>
Date: Thu, 09 Apr 1998 14:42:28 -0400
flow object tree james clark
Francois Belanger wrote:

> ... 
> If the second rule is valid (I think it is), then one can create any kind
> of output using CDATA sections and do away with Core Flow Objects.
> 
> Is this a good approach? Or is it the equivalent of the one-pixel GIF
> hack in HTML and defeats the purpose of XSL?

The "HTML Flow Objects" are a temporary (though perhaps long-lived)
hack. One of the nasty things about them is that they confuse people
into thinking that XSL transforms one text string (an XML document) into
another (an HTML document). It does not:

 * A parser transforms an XML document into a grove or "document object"
 * XSL transforms that into a "flow object tree"
 * A browser or word processor displays the flow object tree.

An actual HTML file never conceptually exists, not even as a stream of
bytes in memory. If that HTML file existed, and could contain any text
at all, (as you propose) then it would have to be parsed, which would
slow everything down.

Now a particular implementation (like docproc or msxml) might decide to
allow you get access to an HTML file that *represents* the flow object
tree, but that doesn't mean that XSL itself defines a conversion from
XML into HTML. It does not.

> I see it as a barrier to adoption more than
> anything else as one has to wait for Core Flow Object to be available and
> supported by a parser to generate different file formats from XML.

This is your conceptual problem. XSL does not exist to "generate
different file formats." It is a stylesheet language for applying style
(formatting!) to XML documents. Thought of in that way, the reasons for
the current choices are probably clear.

 Paul Prescod  - http://itrc.uwaterloo.ca/~papresco

"You have the wrong number."
"Eh? Isn't that the Odeon?"
"No, this is the Great Theater of Life. Admission is free, but the 
taxation is mortal. You come when you can, and leave when you must. The 
show is continuous. Good-night." -- Robertson Davies, "The Cunning Man"


 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.