RE: XHTML --> FO

2003-02-26 Thread VipinJ
Notes
  
  
   The stylesheet tries to convert XSL FO data into HTML+CSS1. CSS2   
   support is still rare among browsers, and hardly can be relyed 
   upon. Even with CSS1, there are many discrepancies between MS  
   Internet Explorer and Netscape Communicator. However, one can  
   hardly do this task without using any stylesheet capabilities at   
   all; so CSS1 seemed to be a common denominator.
  
  
   It goes without saying that XSL FOs are much more powerful than
   HTML+CSS1; moreover, since paged media are organized differently   
   from scrollable media, absolute similarity is not achievable.  
   Therefore, the conversion aims mostly at giving the user a 
   possibility to browse FO files, without pretending to preserve all 
   formatting subtleties predisposed for quality printing. The task   
   is also simplified by common vocabulary shared by XSL FO and CSS.  
   With this premises, the problem can be solved by amazingly simple  
   means: a 30 kb stylesheet does the bulk of the work.   
  
  
   Certainly, not everything can be achieved easily: for instance,
   calculating the inheritance propagation along the FO tree is a 
   really tough task, as well as parsing CSS2 shorthands in XSLT. We  
   didn't even attempted to tackle this: in our opinion, this is more 
   easily achieved by a preprocessor. RenderX has such a preprocessor 
   built into XEP; redirecting its output into a file gives us a  
   "canonical" XSL FO document - with all shorthands expanded,
   inheritance propagated, length units normalized etc.   
  
  
   However, if your XSL FO documents don't make use of shorthands,
   multiple columns, absolutely positioned blocks and similar 
   advanced features, the results of the conversion can be very close 
   to the truth even without preprocessing, like in the examples  
   given above. This requires special care while writing XSL FO   
   stylesheets; but our experience shows it is relatively easy.   
  







   
"Afshartous, Nick"  
   
<[EMAIL PROTECTED]To: "'[EMAIL PROTECTED]'" 
 
tcorp.com><[EMAIL PROTECTED]>   
 
  cc:   
   
    02/26/03 01:01 AM Subject: RE: XHTML --> FO 
   
Please respond to   
   
fop-user
   

   

   








> This is AntennaHouse's version, haven't used it very much but
> I think it
> works. Needs an internet connection while processing (at least with
> FOP), probably for the XHTML namespace...

Thanks, I've been using the AntennaHouse version but it doesn't
translate tables in a way that satisifes FOP.  Just thought
someone may have already solved this ?


   Nick





> -Original Message-
> From: Santtu Pajukanta [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, February 25, 2003 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XHTML --> FO
>
>
> Afshartous, Nick wrote:
> >
> > Hi,
> >
> > I've seen discussion on the topic in the archives, but
> > no postings of stylesheets that are compatible with FOP.
> >
> > Could someone please post a  stylesheet that
> > does XHTML --> FO where the output is compatible
> > with FOP (i.e. tables work).  Thanks.
> >
> > --
> > Nick
> >
> >
>


--InterScan_NT_MIME_Boundary--








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: XHTML --> FO

2003-02-25 Thread Afshartous, Nick
Title: RE: XHTML --> FO







> This is AntennaHouse's version, haven't used it very much but 
> I think it 
> works. Needs an internet connection while processing (at least with 
> FOP), probably for the XHTML namespace...
 
Thanks, I've been using the AntennaHouse version but it doesn't
translate tables in a way that satisifes FOP.  Just thought
someone may have already solved this ? 


   Nick



> -Original Message-
> From: Santtu Pajukanta [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 25, 2003 2:21 PM
> To: [EMAIL PROTECTED]
> Subject: Re: XHTML --> FO
> 
> 
> Afshartous, Nick wrote:
> > 
> > Hi,
> > 
> > I've seen discussion on the topic in the archives, but
> > no postings of stylesheets that are compatible with FOP.
> > 
> > Could someone please post a  stylesheet that
> > does XHTML --> FO where the output is compatible
> > with FOP (i.e. tables work).  Thanks.
> > 
> > -- 
> > Nick
> >  
> > 
> 





Re: XHTML --> FO

2003-02-25 Thread Santtu Pajukanta
Afshartous, Nick wrote:
Hi,
I've seen discussion on the topic in the archives, but
no postings of stylesheets that are compatible with FOP.
Could someone please post a  stylesheet that
does XHTML --> FO where the output is compatible
with FOP (i.e. tables work).  Thanks.
--
Nick
 

This is AntennaHouse's version, haven't used it very much but I think it 
works. Needs an internet connection while processing (at least with 
FOP), probably for the XHTML namespace...

--
-- Santtu "Japsu" Pajukanta
-- [EMAIL PROTECTED]
-- ICQ#: 115011651
"Any job worth doing with a laser is worth doing with many, many lasers",
-Khrima in ADVENTURERS! the comic by Mark Shallow

http://www.w3.org/1999/XSL/Transform";
xmlns:fo="http://www.w3.org/1999/XSL/Format";
xmlns:html="http://www.w3.org/1999/xhtml";>
  
  
  
  
  
  
  auto
  auto
  1in
  1in
  1in
  1in
  
  
  0.5in
  0.5in
  true
  true
  
  
  1
  12pt
  
  
  lr-tb
  
  
  start
  
  
  false
  
  
  
  
  
  
  




  
  
  



  
  
  

  
  
  

small
center
  
  
  

small
center
  
  
  
  
  
2em
bold
0.67em
0.67em
always
always
  
  
  
1.5em
bold
0.83em
0.83em
always
always
  
  
  
1.17em
bold
1em
1em
always
always
  
  
  
1em
bold
1.17em
1.17em
always
always
  
  
  
0.83em
bold
1.33em
1.33em
always
always
  
  
  
0.67em
bold
1.67em
1.67em
always
always
  
  
  
1em
1em

  
  
  


  
  
  

  
  
  
inherited-property-value(start-indent) + 24pt
inherited-property-value(end-indent) + 24pt
1em
1em
  
  
  
0.83em
monospace
pre
1em
1em
  
  
  
italic
  
  
  
1px inset
0.67em
0.67em
  
  
  
  
  
1em
1em
  
  
  
0pt
0pt
  
  
  
1em
1em
  
  
  
0pt
0pt
  
  
  

baseline
  
  
  

baseline
  
  
  
1em
1em
  
  
  
always
always
  
  
  
inherited-property-value(start-indent) + 24pt
  
  
  
  
  •
  
1em serif
  
  
  o
  
0.67em monospace
0.25em
  
  
  -
  
bold 0.9em sans-serif
0.05em
  
  
  1.
  
  
  a.
  
  
  i.
  
  
  
   
  

0pt
0pt
0pt
0pt
start
relative
  
  
  


center
  
  
  
separate
2px
1px

  
  
  
center
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
bolder
center
1px

1px
  
  
  
1px

1px
  
  
  
  
  
bolder
  
  
bolder
  
  
  
bolder
italic
  
  
  
italic
  
  
italic
  
  
italic
  
  
italic
  
  
italic
  
  
  
monospace
  
  
monospace
  
  
monospace
  
  
monospace
  
  
  
larger
  
  
smaller
  
  
  
sub
smaller
  
  
super
smaller
  
  
  
line-through
  
  
line-through
  
  
line-through
  
  
  
underline
  
  
underline
  
  
  

  
  
  

  
  
  
  
  
  
  
  
  
  
  
2px solid
  
  
  
   
  
underline
blue
  
  
  
  
  
  
  
  

  
  
  

  
  
  

  


  




  
  




  
  




  

  

  
  
  
  
  

  

  
  

  

  

  
  

  
- 

 -
  

  
  

  
  

  

  
  
  
  
  


  
  
  

  



  

  

  
  

  

  



  

  

  
  

  

  



  



  

  

  


  

  

  


  

  



  

  


  
  
  




  
  

  

  
  

  

  
  

  

  


  

  before


  after


  center


  auto
  baseline

  


  

  

  



  

  

  
  
  
  
  
  

  

  
  
  

  

  
  
  

  

  
  
  

  

  
  
  

  

  
  
  

  

 

RE: XHTML --> FO

2003-02-25 Thread Afshartous, Nick
Title: RE: XHTML --> FO






Hi,


I've seen discussion on the topic in the archives, but
no postings of stylesheets that are compatible with FOP.


Could someone please post a  stylesheet that 
does XHTML --> FO where the output is compatible
with FOP (i.e. tables work).  Thanks.


--
    Nick