You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Carsten Ziegeler <cz...@s-und-n.de> on 2002/12/02 13:09:24 UTC

Bug in TransformerIdentityImpl?

Hi,

I'm just trying to find some problems in the latest Java version
of Xalan: when the TransformerIdentityImpl is used, output
properties are ignored when they are set by setOutputProperties().
We are heavily beaten by this problem in Cocoon.

I think this lies in the code of the setOutputProperties() method in
java/src/org/apache/xalan/transformer/TransformerIdentityImpl.java
(I removed some lines:)

 public void setOutputProperties(Properties oformat) {
      // See if an *explicit* method was set.
      String method = (String) oformat.get(OutputKeys.METHOD);
      if (null != method)
        m_outputFormat = new OutputProperties(method);
      else
        m_outputFormat = new OutputProperties();

      m_outputFormat.copyFrom(oformat);
}

If the new Properties (oformat) does contain a method, a new
OutputProperties for this method is generated, and then most
properties are ignored during the copyFrom() method as they
are already set.
So I think, the copyFrom() can not be used here, because if
m_outputFormat does already contain a value for key from
oformat, the value from oformat is ignore in copyFrom().

Am I right, or did I oversee somethink? I think, changing
  m_outputFormat.copyFrom(oformat)
to
  <copy all properties from oformat except METHOD to m_outputFormat>
would be correct.

I can send a patch if you like.

Regards
Carsten


Re: SGI STL

Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.



It's the IOStreams that cause problems, and Xerces uses them minimally.
They also don't use any of the STL containers, so it's not a relevant
comparison.

Dave



                                                                                                                                        
                      "Endre Magyari"                                                                                                   
                      <endre@nextra.ro         To:      <xa...@xml.apache.org>                                                      
                      >                        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                            
                                               Subject: Re: SGI STL                                                                     
                      12/03/2002 08:05                                                                                                  
                      AM                                                                                                                
                      Please respond                                                                                                    
                      to xalan-dev                                                                                                      
                                                                                                                                        



It's strange, because Xerces has no problems at all with SGI STL.
I thought they (Xerces and Xalan) are more related to each other than it
seems;)

Thank you,
endre.

----- Original Message -----
From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
To: <xa...@xml.apache.org>
Sent: Tuesday, December 03, 2002 12:50 AM
Subject: Re: SGI STL


>
>
>
>
> I don't think it will work.  I tried 3 years ago with no luck.
>
> However, you can use STLport, which is a much better choice if you need
to
> use a different STL.
>
> Dave
>
>
>
>
>                       "Endre, MAGYARI"
>                       <endre@nextra.ro         To:
xalan-dev@xml.apache.org
>                       >                        cc:      (bcc: David N
Bertoni/Cambridge/IBM)
>                                                Subject: SGI STL
>                       12/02/2002 05:25
>                       AM
>                       Please respond
>                       to xalan-dev
>
>
>
>
> Dear list,
>
>
>              I wonder whether the XALAN can be compiled with the SGI
STL(v
> 3.2)?
>
>              On Microsoft Platform, I was compiling the samples, and
> everything
> went fine until I added the path og the SGI STL headers to the include
> path.
>
>              Has anyone tried this, is it doable?
>
> Thank you,
> Endre.
>
>
>




Re: SGI STL

Posted by Endre Magyari <en...@nextra.ro>.
It's strange, because Xerces has no problems at all with SGI STL.
I thought they (Xerces and Xalan) are more related to each other than it
seems;)

Thank you,
endre.

----- Original Message -----
From: "David N Bertoni/Cambridge/IBM" <da...@us.ibm.com>
To: <xa...@xml.apache.org>
Sent: Tuesday, December 03, 2002 12:50 AM
Subject: Re: SGI STL


>
>
>
>
> I don't think it will work.  I tried 3 years ago with no luck.
>
> However, you can use STLport, which is a much better choice if you need to
> use a different STL.
>
> Dave
>
>
>
>
>                       "Endre, MAGYARI"
>                       <endre@nextra.ro         To:
xalan-dev@xml.apache.org
>                       >                        cc:      (bcc: David N
Bertoni/Cambridge/IBM)
>                                                Subject: SGI STL
>                       12/02/2002 05:25
>                       AM
>                       Please respond
>                       to xalan-dev
>
>
>
>
> Dear list,
>
>
>              I wonder whether the XALAN can be compiled with the SGI STL(v
> 3.2)?
>
>              On Microsoft Platform, I was compiling the samples, and
> everything
> went fine until I added the path og the SGI STL headers to the include
> path.
>
>              Has anyone tried this, is it doable?
>
> Thank you,
> Endre.
>
>
>


Re: SGI STL

Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.



I don't think it will work.  I tried 3 years ago with no luck.

However, you can use STLport, which is a much better choice if you need to
use a different STL.

Dave



                                                                                                                                          
                      "Endre, MAGYARI"                                                                                                    
                      <endre@nextra.ro         To:      xalan-dev@xml.apache.org                                                          
                      >                        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                              
                                               Subject: SGI STL                                                                           
                      12/02/2002 05:25                                                                                                    
                      AM                                                                                                                  
                      Please respond                                                                                                      
                      to xalan-dev                                                                                                        
                                                                                                                                          



Dear list,


             I wonder whether the XALAN can be compiled with the SGI STL(v
3.2)?

             On Microsoft Platform, I was compiling the samples, and
everything
went fine until I added the path og the SGI STL headers to the include
path.

             Has anyone tried this, is it doable?

Thank you,
Endre.




SGI STL

Posted by "Endre, MAGYARI" <en...@nextra.ro>.
Dear list,


	I wonder whether the XALAN can be compiled with the SGI STL(v 
3.2)?

	On Microsoft Platform, I was compiling the samples, and everything 
went fine until I added the path og the SGI STL headers to the include 
path.

	Has anyone tried this, is it doable?

Thank you,
Endre.