[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] how to use Xalan redirect:write
Subject: RE: [xsl] how to use Xalan redirect:write From: "John Marshall" <John.Marshall@xxxxxxxxxxxxxx> Date: Wed, 17 Sep 2003 11:28:33 +0100 |
A Xalan expert is going to give you chapter and verse, but I would guess that this open is in write mode, not in append mode, so existing contents of csv.txt will be overwritten on each occasion. John Marshall Accurate Software 80 Peach Street, Wokingham, Berkshire, RG40 1XH, UK. Tel: +44 (0)118 977 3889 Fax: +44 (0)118 977 1260 http://www.accuratesoftware.com <http://www.accuratesoftware.com> -----Original Message----- From: Kloeck, Erwin [mailto:Erwin.Kloeck@xxxxxx] Sent: 17 September 2003 09:21 To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: AW: [xsl] how to use Xalan redirect:write Thanks Victor for replying. What I do now is the followin: <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"> ... <redirect:open file="csv.txt" /> <redirect:write file="csv.txt" append="true"> <xsl:value-of select="'some text'"/> </redirect:write> <redirect:close file="csv.txt" /> I still only get the last entry of my for-each loop. Erwin -----Ursprüngliche Nachricht----- Von: Linnemann, Victor [mailto:Linnemann@xxxxxxxxxxxxx] Gesendet: Mittwoch, 17. September 2003 10:01 An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Betreff: AW: [xsl] how to use Xalan redirect:write Hi Erwin, You can reopen a document by using <xalan:open ...>, write something to it with <xalan:write> and then close it again with <xalan:close ...>. With kind regards, Victor Linnemann -------------------------- Consulting / CMS euroscript Switzerland AG Hafenstrasse 50 d CH-8280 Kreuzlingen E-Mail: Linnemann@xxxxxxxxxxxxx Internet: www.euroscript.ch XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list Accurate Software info@xxxxxxxxxxxxxxxxxxxx www.accuratesoftware.com Europe . North America . Australasia . Africa The information in this email is confidential and privileged and is intended only for the use of the individual or entity listed above. If you are neither the intended individual, or entity listed above, nor the person responsible for the delivery of this email to the intended recipients, you are hereby notified that any unauthorised distribution, copying or use of this email is prohibited. If you have received this email in error, please notify the Accurate system manager at postmaster@xxxxxxxxxxxxxxxxxxxx or on +44 (0)118 977 3889. The views expressed in this communication may not necessarily be the views held by the Accurate Group. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] how to use Xalan redirect:wri, Kloeck, Erwin | Thread | RE: [xsl] how to use Xalan redirect, John Marshall |
RE: [xsl] Noob: how to use "for eac, Jarno . Elovirta | Date | RE: [xsl] how to use Xalan redirect, John Marshall |
Month |