First, i had just to save it (not to send the
result file to the client). I did it in a stylesheet like this :
<?xml version="1.0"
encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect" extension-element-prefixes="redirect"> <xsl:output method="xml"
encoding="ISO-8859-1"/>
<xsl:template match="/"> <redirect:write file="{$path}"> <xsl:copy-of select="*"/> </redirect:write> <TEXTE>output for the
client</TEXTE>
</xsl:template
>
</xsl:stylesheet> But there was problems with some configuration, so
finally i did it in my Action who had to generate the XML.
If you have to duplicate your XML stream, one for
saving, another for the client, i think you have to do this in an action.
It generates the XML file and this one is next
transformed/serialized.
<map:match
pattern="some.html">
<map:act
type="YourAction">
<map:generate src=""/> <map:transform
src=""/>
<map:serialize
type="html"/>
</map:match>
Ludovic
|
- Writing output of pipeline to a file Anna Afonchenko
- Re: Writing output of pipeline to a file Ludovic de Beaurepaire
- Re: Writing output of pipeline to a file Anna Afonchenko
- Re: Writing output of pipeline to a fi... Ludovic de Beaurepaire
- Re: Writing output of pipeline to ... Upayavira
- Re: Writing output of pipeline to ... Anna Afonchenko
- Re: Writing output of pipelin... Ludovic de Beaurepaire
- Re: Writing output of pip... Anna Afonchenko
- Re: Writing output of... Ludovic de Beaurepaire
- Re: Writing output of... Anna Afonchenko
- RE: Writing output of... Luca Morandini
- Re: Writing output of... Anna Afonchenko
- RE: Writing output of... Luca Morandini
- RE: Writing output of pip... Ray Martin