Subject: [xsl] how to use Xalan redirect:write From: "Kloeck, Erwin" <Erwin.Kloeck@xxxxxx> Date: Tue, 16 Sep 2003 18:54:05 +0200 |
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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Problem accessing child n, Passin, Tom | Thread | RE: [xsl] how to use Xalan redirect, John Marshall |
Re: [xsl] Problem accessing child n, Wendell Piez | Date | RE: [xsl] Problem accessing child n, Passin, Tom |
Month |