[ 
http://issues.apache.org/jira/browse/XALANJ-2040?page=comments#action_65009 ]
     
Henry Zongaro commented on XALANJ-2040:
---------------------------------------

Ross, I tried but failed to reproduce the problem you describe using the 
current CVS source as well as with the XSLTC that was part of Xalan-J 2.5.0, 
2.5.1 and 2.6.0.  I probably didn't produce the test case that you were 
describing.

Could I ask you to attach a complete test case (stylesheet and any relevant 
input document) to the bug report?  That usually reduces the likelihood of 
confusion and ambiguity.

> imported stylesheets not inheriting output-method in XSLTC
> ----------------------------------------------------------
>
>          Key: XALANJ-2040
>          URL: http://issues.apache.org/jira/browse/XALANJ-2040
>      Project: XalanJ2
>         Type: Bug
>   Components: XSLTC
>     Versions: 2.6
>  Environment: NA
>     Reporter: Ross J. McCarthy
>     Assignee: Santiago Pericas-Geertsen
>     Priority: Minor

>
> Within XSLTC, if the output method gets set within an XSL, this output method 
> does not seem to be inherited by imported XSL sheets.  It should (I believe) 
> be inherited by imported XSLs unless otherwise overridden within the nested 
> xsl.  Works fine doing regular xslt using 2.6 xalan.
> My patch fix:
> File: \xalan-j_2_6_0\src\org\apache\xalan\xsltc\compiler\Stylesheet.java
> Line: 224
> Fix:
>     /**
>      * Return the output method
>      */
>     public int getOutputMethod() {
>         // pull from parent if I'm not known and
>         // I'm an imported stylesheet - property
>         // will be inherited
>         //
>         if ((UNKNOWN_OUTPUT == _outputMethod)
>         &&  (null           != _parentStylesheet)) {
>             return _parentStylesheet.getOutputMethod();
>         }
>         
>       return _outputMethod;
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to