Hi,

If you cannot use the new namespace xmlns:redirect="
http://xml.apache.org/xalan/redirect";, it is likely that you are using an
old version of Xalan. Check this FAQ (
http://xml.apache.org/xalan-j/faq.html#faq-N100CB) if you use Xalan with
JDK 1.4.

Regards,

Morris Kwan
XSLT Development
IBM Toronto Lab
Tel: (905)413-3729
Email: [EMAIL PROTECTED]



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



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