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

XSL and Device-Independent Formatting

  • From: David Megginson <david@m...>
  • To: "XML Developers' List" <xml-dev@i...>
  • Date: Thu, 10 Sep 1998 13:33:35 -0400

device independent
Andrew Bunner writes:

 >   The moral of the story is that if your target language is not
 > XML, then you have to write your own tool to take it from XML to,
 > let's say, HTML.  One way is to get into the XSL processor and add
 > your own code, another (less clean) way is to write something that
 > post-processes the XML representation of the target language.

<warning>I have not had the opportunity to spend much time with the
 new XSL WD yet, so my answer is based on general practice rather than
 the specific process defined in the XSL WD.</warning>

I think that people are over-thinking the problem.  Try this on for
size: an XSL formatter produces a device-independent formatting tree,
then can render the same tree in different concrete formats (PDF, PS,
DVI, or what have you).  As a happy co-incidence, it happens that the
intermediate formatting tree -- like most structured information --
can be serialised as an XML document.

That means that, if you wish, the two parts of the process (building
the device-independent formatting tree and rendering the tree) can be
handled by separate programs, since the XML provides a common
interchange standard.  If you plan to do the whole thing with a single
process, however, then there is no need actually to produce the XML
representation of the formatting tree -- just keep it as an internal
object tree.

Now, HTML is a special case, because it does not fit in well with
normal formatting semantics (it is considered bad practice to specify
font size, etc., in the document, though you can attach a CSS
stylesheet).

I hope this helps.


All the best,


David

-- 
David Megginson                 david@m...
           http://www.megginson.com/

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.