You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by zo...@apache.org on 2004/02/11 21:45:59 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/templates ElemParam.java
zongaro 2004/02/11 12:45:59
Modified: java/src/org/apache/xalan/templates ElemParam.java
Log:
Fix for bugzilla bug report 24302.
Changed condition under which the parent element's m_inArgsSize field is
incremented - that field keeps track of the number of xsl:param children an
element has. This was only happening for ElemTemplate, but it needs to happen
for ElemExsltFunction, which is a subclass of ElemTemplate, as well.
Reviewed by Morris Kwan (mkwan () ca!ibm!com)
Revision Changes Path
1.16 +3 -1 xml-xalan/java/src/org/apache/xalan/templates/ElemParam.java
Index: ElemParam.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/templates/ElemParam.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- ElemParam.java 17 Oct 2003 20:59:19 -0000 1.15
+++ ElemParam.java 11 Feb 2004 20:45:59 -0000 1.16
@@ -127,7 +127,9 @@
{
super.compose(sroot);
m_qnameID = sroot.getComposeState().getQNameID(m_qname);
- if(m_parentNode.getXSLToken() == Constants.ELEMNAME_TEMPLATE)
+ int parentToken = m_parentNode.getXSLToken();
+ if (parentToken == Constants.ELEMNAME_TEMPLATE
+ || parentToken == Constants.EXSLT_ELEMNAME_FUNCTION)
((ElemTemplate)m_parentNode).m_inArgsSize++;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org