Hi,

<redirect:write file="csv.txt" append="true"> should be <redirect:write
select="csv.txt" append="true">
You can read http://xml.apache.org/xalan-j/extensionslib.html#redirect to
know more about redirect support.


Christine Li
XSLT Development
IBM Toronto Lab
Tel: (905)413-2601
Email: [EMAIL PROTECTED]


|---------+---------------------------->
|         |           "Kloeck, Erwin"  |
|         |           <[EMAIL PROTECTED]|
|         |           .de>             |
|         |                            |
|         |           09/17/2003 03:43 |
|         |           AM               |
|         |                            |
|---------+---------------------------->
  
>---------------------------------------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                                                |
  |       To:       <[EMAIL PROTECTED]>                                         
                                                     |
  |       cc:                                                                   
                                                                |
  |       Subject:  redirect:write problem                                      
                                                                |
  |                                                                             
                                                                |
  |                                                                             
                                                                |
  
>---------------------------------------------------------------------------------------------------------------------------------------------|



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




Reply via email to