Hi,

what's the best way to perform xslt within maven?

I've tried using the jelly:xml taglib with limited success. Is this the best way to achive xslt tasks?

.......
xmlns:x="jelly:xml">

    <x:transform var="webxml" xml="src/webapp/WEB-INF/web.xml"
        xslt="src/webapp/WEB-INF/simplemerge.xsl"/>

this places the result in a varable 'webxml' in a org.dom4j.tree.DefaultDocument 
instance.

How do I then write the content of this object to a file?

    <j:file name="${maven.struts.module.build.dir}/web.xml"
             outputMode="xml"
             prettyPrint="true"
             encoding="UTF-8">
      ${webxml}
    </j:file>

this simply outputs org.dom4j.tree.DefaultDocument.toString() to the file.

the jelly docs mention a number of tags that place results into a var, what they don't tell you is how to use that var :)

or should I just use the ant tasks?
<xslt in="doc.xml" out="build/doc/output.xml" style="style/apache.xsl">
..................
...............

cheers
Nathan

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



Reply via email to