I've never heard about such tool.
>From my experience, you need to dive into the XSLT by hand, and you will
never get stricly the same output, but approximative (due to 0.20.x lake
in precision).

Pascal

overtaker a écrit :
> I read that sometime ago, but apparently using relaxed mode doesn't always
> guarantee that the xsl from version 0.20.5 will render (without regard of
> the alignment and workaround, i just want to make it to work first)
>
>
> most of the cases it will throw this exception:
>
> javax.xml.transform.TransformerException: org.xml.sax.SAXException:
> Mismatch: page-sequence (http://www.w3.org/1999/XSL/
> Format) vs. root (http://www.w3.org/1999/XSL/Format)
>         at
> org.apache.xalan.templates.ElemLiteralResult.execute(ElemLiteralResult.java:714)
>         at
> org.apache.xalan.templates.ElemApplyTemplates.transformSelectedNodes(ElemApplyTemplates.java:429)
>
>
> so I guess rewriting those xsl files are unavoidable, but is there any tool
> / 3rd party be it free or commercial, that I can use to automate the
> conversion ? 
> did I ask too much ? :P
>
>
>
> Pascal Sancho wrote:
>   
>> Hi,
>>
>> You should first read the Upgrading Page [1].
>> Main changes are:
>>  - new API
>>  - stricter respect of Recommendation XSL-FO
>>     (how graphics are handled could be the 1st point for you)
>>  - FOP extensions are not the same between the 2 branches
>>  
>> Then you should probably rewrite all your XSLT material, since a lot of
>> workarounds are no longer needed
>>   - better Y axis computations and related things (vertical align,
>> spaces and margins)
>>   - static regions *below* flow region,
>>   - etc.
>>
>> [1] http://xmlgraphics.apache.org/fop/0.95/upgrading.html
>>
>> Pascal
>>
>> overtaker a écrit :
>>     
>>> Hi everyone
>>>
>>> as far as I know there are some quite major changes to the xsl tags
>>> between
>>> the xsl that is used by FOP 0.20 and the one that's being used by FOP
>>> 0.95
>>>
>>> my question here is that is there any easy way to convert xsl files that
>>> are
>>> written and proved to work with 0.20 into xsl files that will work for
>>> 0.95?
>>> the reason is that we have so much xsl files that it would take more than
>>> 1
>>> month to rewrite them so that they can be processed successfully in FOP
>>> 0.95
>>>
>>>
>>> Thanks
>>>       


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to