You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by sa...@apache.org on 2003/10/06 15:53:13 UTC

cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler CallTemplate.java

santiagopg    2003/10/06 06:53:13

  Modified:    java/src/org/apache/xalan/xsltc/compiler CallTemplate.java
  Log:
  Fixed problem in XSLT parameter optimization. The search for the template being called should start from the top-level stylesheet. The incorrect signature was generated when xsl:template and xsl:call-template were located in different stylesheets.
  
  Revision  Changes    Path
  1.15      +2 -2      xml-xalan/java/src/org/apache/xalan/xsltc/compiler/CallTemplate.java
  
  Index: CallTemplate.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/CallTemplate.java,v
  retrieving revision 1.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- CallTemplate.java	8 Jul 2003 20:32:51 -0000	1.14
  +++ CallTemplate.java	6 Oct 2003 13:53:13 -0000	1.15
  @@ -280,7 +280,7 @@
        * template is not a simple named template.
        */
       public Template getCalleeTemplate() {
  -    	Stylesheet stylesheet = getStylesheet();
  +    	Stylesheet stylesheet = getXSLTC().getStylesheet();
       	Vector templates = stylesheet.getAllValidTemplates();
       	int size = templates.size();
       	for (int i = 0; i < size; i++) {
  
  
  

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