cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bertrand Delacretaz <bdelacre...@codeconsult.ch>
Subject Re: xhtml2fo.xsl anyone
Date Mon, 15 Jul 2002 10:54:35 GMT
Unfortunately I don't have a working XHTML to FO conversion, rather some 
experience to share: we wrote such a transformation for a customer project 
(too specific to share I'm afraid), and in retrospect I think the following 
structure would have been much more reusable and maintainable:

  XHTML -> logical document -> FO

using two XSLT transforms.

By "logical document" I mean going back to your document structure, 
extracting the "meat" from the input document. Then only in the second 
transform would you apply presentation to it.

This is much easier to test and debug than a single-pass transform IMHO, and 
converting to logical structure is much more reusable if you need to generate 
other formats or different presentations later on.

My 2 cents..
-Bertrand

---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message