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

Re: Future of XSL-FO at W3C??


fo style
David Carlisle wrote:

> > Future of XSL-FO at W3C, I
> > suggest XSL-FO 2 allows CSS styling.
> 
> I find this a bizarre suggestion!

I find the current solution bizzare. I think developers are used
to the pattern: XSLT for structure, CSS for decoration. The
same pattern reappears in SVG. How do you mean that formatting
for a page media is in anyway different from HTML and SVG in
this respect?

I would say that most of the decoration properties tend to be fairly
static (i.e not dependent on the particular document being formatted).
Those static properties are mostly managed by hand so I think it is very
useful to have a compact and perspicuous notation for them.

However, I agree that it is important to facilitate those situation where
you do need to programmatically compose properties. One way to do that
would be to develop a standard XML representation of CSS. This
would just be an alternative syntax just like there is an alternative
compact syntax to the XML-form of RELAX NG. So instead
of composing a style attribute value by string concatenation
you would use a css-element. Depending on the situation you
could choose freely which notation to use as in this very
hypothetical example:

<fo:style type="text/css">
foo { text-align: right; color: blue; }
</fo:style>
...
<fo:block class="foo">
  <css:style>
    <!-- Example of computed property -->
    <css:property name="margin-left"><xsl:value-of select="$level * $indent-step"/></css:property>
  </css:style>
  ...
</fo:block>

Cheers,
David

--------------------------------------------------
David Rosenborg
Pantor Engineering AB


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.