OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] Future of XSL-FO at W3C??

[ Lists Home | Date Index | Thread Index ]


> Come now, that is not the way more advanced styling scenarios work.

Apart from needing more and bigger rules, that is exactly how they work
isn't it? (apart from the fact my template accidentally matched p rather
than x.

> First off, the fo:block tag is a presentation element in it's own right,
> just as the p tag is, so the example should be a little more like this

> fo:block{
> text-align:right;

No. Not at all. That is exactlty my point. One should never write an fo
document, it is only the result of styling some other document. So why
do you want to re-style it with css?


> <fo:block class="exampleblock">

why do that and force a different styling language with a different set
of selectors have to walk over the result tree and find this class
attribute and style it. The only point in an xsl-fo generating
stylesheet is to style the input document. there is no point in
pretending that the resulting fo tree is some generic content-rich
document that can be css styled in arbitrary ways.


> i.e someone can work on the css without knowledge of xslt,

I don't think that (should) be possible in general. Someone might css
style the original document but unless they have intimate knowledge of
the xsl stylesheet they should not  expect to be able to css style the
resulting FO. No one wants to look at a generated FO document except
bad days when you are debugging. It should just be internal guff that
you pass as quickly as possible to your FO engine.

Of course there is room for both points of view. as XSL FO is (usefully,
unlike CSS) XML, there is nothing stopping an XSL FO renderer from
accepting further CSS styling on that XML document before rendering it,
CSS can more or less style any XML vocabulary (despite its obvious html
heritage, with fixed assumptions about class attributes etc). I believe
there is a css stylesheet around somewhere that implements at least some
of XSL FO directly in a css capable browser, such an implementation
would naturally allow further stylesheets to be cascaded over the
document if that's what you want to do. (I still think its an odd thing
to want though:-)

David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS