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

how to use Xalan redirect:write

Subject: how to use Xalan redirect:write
From: "Kloeck, Erwin" <Erwin.Kloeck@xxxxxx>
Date: Tue, 16 Sep 2003 18:54:05 +0200
xmlns redirect
Hi, 

I don't understand Xalan extensions.

I want to append some text to an existing file and I do the following:

<xsl:stylesheet 
	version="1.0" 
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:fo="http://www.w3.org/1999/XSL/Format"
      xmlns:redirect="org.apache.xalan.xslt.extensions.Redirect"
      extension-element-prefixes="redirect">

...
	<xsl:for-each ...>

	<redirect:write file="csv.txt" append="true">
		<xsl:value-of select="'some text'"/>
	</redirect:write>
...


This does not append the text to csv.txt but creates a new file every time, 
so that only the last entry is in the file.
What am I doing wrong?

Then, I use the namespace declaration shown above. The docs say, I should use

	xmlns:redirect="http://xml.apache.org/xalan/redirect"

but when I do this, I get an error.

What am I missing?

Thanks,


..............................

Erwin Kloeck
Produktentwicklung

Oestreicher + Wagner 
Medientechnik GmbH
Frankenthaler Strasse 20
D-81539 Muenchen

Fon   +49 (0)89-68961 216 
Fax   +49 (0)89-68961 271


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.