AW: [xsl] how to use Xalan redirect:write

Subject: AW: [xsl] how to use Xalan redirect:write
From: "Kloeck, Erwin" <Erwin.Kloeck@xxxxxx>
Date: Wed, 17 Sep 2003 14:49:57 +0200
Hi John,

according to the xalan docs, I should not even need redirect:open and redirect:close.

What worries me, is that the namespace, according to the docs is:

and when I use this, I get the following error:

javax.xml.transform.TransformerException: java.lang.ClassNotFoundException: redirect

I do not get an error, when I use the namespace shown in my previous post (appended).
But then the append attribute does not work.

Any help is welcome.


-----Ursprüngliche Nachricht-----
Von: John Marshall [mailto:John.Marshall@xxxxxxxxxxxxxx]
Gesendet: Mittwoch, 17. September 2003 12:45
An: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Betreff: RE: [xsl] how to use Xalan redirect:write

Sorry, I hadn't read closely enough when I replied earlier. Should the append="true" attribute apply to redirect:open rather than redirect:write (or to both)? Would an alternative be to open and close the file in the document template, so that it stays open throughout the transformation?

John Marshall
Accurate Software

80 Peach Street, Wokingham, Berkshire, RG40 1XH, UK.
Tel: +44 (0)118 977 3889
Fax: +44 (0)118 977 1260 <>  

-----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:


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

I still only get the last entry of my for-each loop.


-----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

 XSL-List info and archive:

 XSL-List info and archive:

Accurate Software


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:

 XSL-List info and archive:

Current Thread