jycli 2004/02/02 12:36:24
Modified: java/src/org/apache/xalan/xsltc/compiler Tag:
xslt20-compiled Stylesheet.java
Log:
Fix for bugzilla bug report 23046.
For included stylesheet, set the _numberFormattingUsed flag to true
for its including stylesheet too
Reviewed by Henry Zongaro ([EMAIL PROTECTED])
Revision Changes Path
No revision
No revision
1.53.2.2 +9 -1
xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java
Index: Stylesheet.java
===================================================================
RCS file:
/home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Stylesheet.java,v
retrieving revision 1.53.2.1
retrieving revision 1.53.2.2
diff -u -r1.53.2.1 -r1.53.2.2
--- Stylesheet.java 24 Nov 2003 23:02:58 -0000 1.53.2.1
+++ Stylesheet.java 2 Feb 2004 20:36:23 -0000 1.53.2.2
@@ -244,6 +244,14 @@
public void numberFormattingUsed() {
_numberFormattingUsed = true;
+ /*
+ * Fix for bug 23046, if the stylesheet is included, set the
+ * numberFormattingUsed flag to the parent stylesheet too.
+ * AbstractTranslet.addDecimalFormat() will be inlined once for the
+ * outer most stylesheet.
+ */
+ Stylesheet parent = getParentStylesheet();
+ if (null != parent) parent.numberFormattingUsed();
}
public void setImportPrecedence(final int precedence) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]