You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by John Fake Jr <fa...@us.ibm.com> on 2003/09/10 23:00:26 UTC

Migrating problem from xalan-c 1.3 to xalan-c 1.6




I'm working on some code and we're upgrading the version of xalan we're
using. Unfortunately we ran across this little caveat:

If seems that the xalan XSLT/StyleSheet class has changed.
header for 1.6:
class XALAN_XSLT_EXPORT Stylesheet : protected PrefixResolver
{
header for 1.3
class XALAN_XSLT_EXPORT Stylesheet : public XalanDocument, protected
PrefixResolver

Without the inheritance for the XalanDocument, the getDocumentElement()
cannot be called and unfortunately
we are using this call in some of our code.  Are there any workarounds to
this problem? Is there possibly a way
to use a member of the Stylesheet class to call an equivalent function to
do the same thing as  getDocumentElement() ?


Z/OS Security Products Development, Tivoli/IBM/Austin,TX
(512)- 436-1225 Tie Line (749)-1225
FAX: (512)-436-1190 Tie Line (749)-1190
Notes Id: John Fake Jr/Endicott/IBM,
Internet Address: fake@us.ibm.com


Re: Migrating problem from xalan-c 1.3 to xalan-c 1.6

Posted by da...@us.ibm.com.



Hi John,

It's not clear to me why you would be calling
Stylesheet::getDocumentElement(), so I can't really offer a reasonable
substitute.  Can you elaborate more on why you would be doing this?  The
use of a Stylesheet as a XalanDocument instance was never properly
supported, so anything you might be doing with the fake document element
would be broken anyway.

Dave



                                                                                                                                                  
                      John Fake Jr                                                                                                                
                      <fake@us.ibm.com         To:      xalan-c-users@xml.apache.org                                                              
                      >                        cc:      (bcc: David N Bertoni/Cambridge/IBM)                                                      
                                               Subject: Migrating problem from xalan-c 1.3 to xalan-c 1.6                                         
                      09/10/2003 02:00                                                                                                            
                      PM                                                                                                                          
                                                                                                                                                  







I'm working on some code and we're upgrading the version of xalan we're
using. Unfortunately we ran across this little caveat:

If seems that the xalan XSLT/StyleSheet class has changed.
header for 1.6:
class XALAN_XSLT_EXPORT Stylesheet : protected PrefixResolver
{
header for 1.3
class XALAN_XSLT_EXPORT Stylesheet : public XalanDocument, protected
PrefixResolver

Without the inheritance for the XalanDocument, the getDocumentElement()
cannot be called and unfortunately
we are using this call in some of our code.  Are there any workarounds to
this problem? Is there possibly a way
to use a member of the Stylesheet class to call an equivalent function to
do the same thing as  getDocumentElement() ?


Z/OS Security Products Development, Tivoli/IBM/Austin,TX
(512)- 436-1225 Tie Line (749)-1225
FAX: (512)-436-1190 Tie Line (749)-1190
Notes Id: John Fake Jr/Endicott/IBM,
Internet Address: fake@us.ibm.com