xml-xalan-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Minchau (JIRA)" <xalan-...@xml.apache.org>
Subject [jira] Assigned: (XALANJ-2040) imported stylesheets not inheriting output-method in XSLTC
Date Tue, 01 Feb 2005 20:19:18 GMT
     [ http://issues.apache.org/jira/browse/XALANJ-2040?page=history ]

Brian Minchau reassigned XALANJ-2040:
-------------------------------------

    Assign To: Santiago Pericas-Geertsen

> 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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org


Mime
View raw message