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

Re: XSL-FO & Images

Subject: Re: XSL-FO & Images
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 28 Apr 2005 00:24:01 +0200
html to xslfo
David Carlisle wrote:
transformations from (X)HTML to XSLFO and vice versa quite a bit.

Could you elaborate?

You can tokenize HTML style attributes in the usual way and use the values for the CSS properties unchanged as FO property values, and it will work well enough. Well, a more useful example would be the reuse of the rather horrible ad-hoc font family format.

One of the professed advantages of FO over CSS is that as ituses an XSL
syntax it is easier to parse and deconstruct the rules. The use of CSS
syntax within the attribute doesn't really help in that aim it seems to
me.

Quite correct. Nevertheless, inventing something more regular than the CSS syntax for e.g. font family lists would probably lead to other undesirable trade-offs, so reusing CSS syntax for this and a few other properties might not seem to be the worst possible idea. After this decision, wholesale import of CSS syntax is obvious and rational.

As I said, while section 5 suggests there is only one grammar to use
for parsing XML attribute values into FO property values, there are
actually half a dozen or so, counting border and font shorthands.
This is one of the rather unpleasant surprises people developing XSLFO
processors encounter.

J.Pietschmann

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.