[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

How can I redirect XSL output back to the default outp

Subject: How can I redirect XSL output back to the default output ?
From: Otmar Klaser <klaser2@xxxxxx>
Date: Wed, 27 Jul 2005 19:18:46 +0200
redirect xsl
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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.