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

Re: Future of XSL-FO at W3C??

teplates free
m batsis wrote:
> What I had in mind is avoidance of redundancy in presentation 
> information, in much the same way htm:div elements with 'class' or 
> 'style' attributes are used instead of htm:font and htm:center.

Can you elaborate? XSLFO does not have a fo:font or fo:center,
there is only a fo:block. The only potentially redundant elements
are fo:list-block and related children (can be emulated with a table).

One issue could be that there is no equivalent of a 'class' attribute,
which indeed causes a lot of repeated sets of attributes on FO
elements. However, it seems this was intentional, you'll find the
equivalent of "class" in XSLT as use-attribute-sets. I wish
xsl:attribute-set and use-attribute-sets had been put in XSLFO
instead of XSLT.

> Thanks. Well, reading a friendly reply like yours, made me try and find 
> arguments against myself. What came out of this is simply that XSL-FO 
> presentation info can be transformed via XSLT, something that would be 
> almost impossible by using CSS notation for that information...

As Ken already said, this also works the other way around, it is
easier in XSLT to override single attribute values than values
already buried in a "style" string, for example:
   <fo:block font-size="12pt">
     <xsl:if test="@importance='high'">
       <xsl:attribute name="font-size">28pt</xsl:attribute>
       <xsl:attribute name="font-weight">bold</xsl:attribute>
I don't think I'd even try to do something similar if all
properties were in a single string.



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.
First Name
Last Name
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.