[ http://issues.apache.org/jira/browse/XALANJ-2040?page=comments#action_57624 ] David Marston commented on XALANJ-2040: ---------------------------------------
What should be happening is described in XSLT 1.0 Chapter 16, in the paragraph just before 16.1 begins. The main stylesheet wins out over the imports. All the output properties are consolidated when processing is started. Of course, the method property affects the relevance and meaning of the other properties, so it must be nailed down first. If you have conflicting methods across stylesheet modules that are being consolidated (through import or include), you should probably investigate why. I suggest that the main stylesheet sets the output properties and the imports/includes don't, other than possibly adding more cdata-section-elements to the list. > 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]
