zongaro 2003/02/11 10:25:35 Modified: java/src/org/apache/xalan/xsltc/compiler Tag: XSLTC_DTM GenerateIdCall.java Log: Applying patch for Bugzilla bug 16745 from Igor Hersht ([EMAIL PROTECTED]). The code generated for a reference to generate-id with no arguments used to default to the current node. XSLT requires it to default to the context node. Revision Changes Path No revision No revision 1.2.6.3 +2 -2 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/GenerateIdCall.java Index: GenerateIdCall.java =================================================================== RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/GenerateIdCall.java,v retrieving revision 1.2.6.2 retrieving revision 1.2.6.3 diff -u -r1.2.6.2 -r1.2.6.3 --- GenerateIdCall.java 30 Jan 2003 18:41:37 -0000 1.2.6.2 +++ GenerateIdCall.java 11 Feb 2003 18:25:35 -0000 1.2.6.3 @@ -80,7 +80,7 @@ public void translate(ClassGenerator classGen, MethodGenerator methodGen) { final InstructionList il = methodGen.getInstructionList(); if (argumentCount() == 0) { - il.append(new ILOAD(methodGen.getLocalIndex("current"))); + il.append(methodGen.loadContextNode()); } else { // one argument argument().translate(classGen, methodGen);
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]