You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Olivier Prouvost <ol...@anyware-tech.com> on 2000/11/09 17:51:54 UTC
style task
With Ant1.2 I've really a problem to use the style task.
I want to process an 'A.xml' file with 'S.xsl' style sheet, and to put
result in 'B.java' destination file.
with a simple call to xalan, it would be : xalan -IN A.xml -XSL S.xsl
-OUT B.java
with ant, it becomes quiet complex :
<style basedir="." destdir="." extension="java" processor="xalan"
includesfile="A.xml" style="S.xsl" />
The output trace is :
[style] Transforming into /home/olivier
[style] Loading stylesheet /home/olivier/S.xsl
There is no way to put a simple destination file. NOTHING is generated
anywhere...! Where is my result file ?
The only way I found to bypass this problem is to call xalan with a
direct java call writing it on 2 heavy lines....
Did anybody work on this problem ?
Thanks
--
------------------------------------------
Olivier Prouvost
Anyware Technologies
Prologue 1 La pyreneenne
31312 LABEGE CEDEX
Tel : 05 61 00 52 90 Fax : 05 61 00 51 46
------------------------------------------
Re: style task
Posted by Stefan Bodewig <bo...@bost.de>.
Olivier Prouvost <ol...@anyware-tech.com> wrote:
> <style basedir="." destdir="." extension="java" processor="xalan"
> includesfile="A.xml" style="S.xsl" />
If you make that
<style basedir="." destdir="." extension="java" processor="xalan"
includes="A.xml" style="S.xsl" />
does it work? includesfile is supposed to point to a file that
contains a list of include patterns, not to the files to include.
I don't have the correct environment to test what you are doing
(haven't been working with XSLT yet), if nobody else can help you,
please send whatever files I need (I can install Xalan myself, thanks
;-) to reproduce it and I'm going to give it a try.
Stefan