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 ]

At 2002-10-18 15:27 +0100, Ian Tindale wrote:
>On Friday 18 October 2002 3:16 pm, bryan wrote:
> > <fo:stylesheet>
> >
> > fo:block{space-before.optimum:5pt; space-after.optimum:3pt;}
> > .Section2{space-before.optimum:7pt;border-start-color:red;
> > border-start-width:2px;}
> > .bodyblock block{border-start-width:1px;}
> > .Title{width:44pt;height:75pt;background-color:blue;color:white;}
> > #section1body22{margin-top:11mm;}
> > </fo:stylesheet>
>I wonder how easy it would be to write an XSLT transformation that eats the
>above and sorts out FO properties in the right places?

Not easy at all ... XSLT 1.0 is designed very well to work with node trees 
and not very well to work with strings.

>After all, the input
>to XSLT doesn't have to be 'proper' XML, doesn't it?

It is an absolute requirement to have well-formed XML.

>(or even XML at all, come to that).

It must be XML ... no exceptions.  The node trees I mentioned above are the 
abstractions of the XML documents ... XSLT and XPath are designed to work 
with the abstractions, not with strings ... they aren't designed to 
manipulate the angle brackets of XML, just the XML constructs represented 
by the angle brackets.

>Thus you could write a CSS stylesheet and use it as a
>pre-phase for the true XSLT transform, to generate a simple immediate library
>of properties as entity replacements. Maybe?


................. Ken

G. Ken Holman               mailto:gkholman@CraneSoftwrights.com
Crane Softwrights Ltd.        http://www.CraneSoftwrights.com/x/
Box 266, Kars, Ontario CANADA K0A-2E0  +1(613)489-0999 (F:-0995)
ISBN 0-13-065196-6                     Definitive XSLT and XPath
ISBN 0-13-140374-5                             Definitive XSL-FO
ISBN 1-894049-08-X Practical Transformation Using XSLT and XPath
ISBN 1-894049-10-1             Practical Formatting Using XSL-FO
Next public training:          2002-12-08,2003-02-03,06,03-03,06


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

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