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
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
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]