xsl-list
[Top] [All Lists]

How can I redirect XSL output back to the default output ?

2005-07-27 10:18:46
Xalan supports the redirection of output via extension xslt:write but how can I redirect output back to the default output file ?

The following example illustrates my problem.

<xsl:template match="/">
  <x>
    <redirect:write file="foo.xml">
       this line is redirected to foo.xml

       the line in the middle
        
    </redirect:write>
  </x>
</xsl:template>

The line in the middle shall belong to the content of element x, i.e., it shall be redirected to the original output file.

I look for a statement like <redirect:write file=">out">.

To move the line in the middle out of the enclosing redirect-statement is not desireable because the line stands for output that is created after a number of calls of xsl:apply-templates.

Can anyone help me ?

  o.k


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>