You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mo...@apache.org on 2001/11/22 15:13:21 UTC
cvs commit: xml-xalan/java/src/org/apache/xalan/xsltc/compiler Constants.java Stylesheet.java
morten 01/11/22 06:13:21
Modified: java/src/org/apache/xalan/xsltc/compiler Constants.java
Stylesheet.java
Log:
Fix for XHTML output.
PR: bugzilla 4904
Obtained from: n/a
Submitted by: morten@xml.apache.org
Reviewed by: morten@xml.apache.org
Revision Changes Path
1.17 +3 -1 xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Constants.java
Index: Constants.java
===================================================================
RCS file: /home/cvs/xml-xalan/java/src/org/apache/xalan/xsltc/compiler/Constants.java,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- Constants.java 2001/11/09 15:14:21 1.16
+++ Constants.java 2001/11/22 14:13:21 1.17
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Constants.java,v 1.16 2001/11/09 15:14:21 tmiller Exp $
+ * @(#)$Id: Constants.java,v 1.17 2001/11/22 14:13:21 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -488,6 +488,8 @@
public static final String XSLT_URI
= "http://www.w3.org/1999/XSL/Transform";
+ public static final String XHTML_URI
+ = "http://www.w3.org/1999/xhtml";
public static final String TRANSLET_URI
= "http://xml.apache.org/xalan/xsltc";
public static final String FALLBACK_CLASS
1.32 +12 -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.31
retrieving revision 1.32
diff -u -r1.31 -r1.32
--- Stylesheet.java 2001/11/12 19:46:47 1.31
+++ Stylesheet.java 2001/11/22 14:13:21 1.32
@@ -1,5 +1,5 @@
/*
- * @(#)$Id: Stylesheet.java,v 1.31 2001/11/12 19:46:47 morten Exp $
+ * @(#)$Id: Stylesheet.java,v 1.32 2001/11/22 14:13:21 morten Exp $
*
* The Apache Software License, Version 1.1
*
@@ -271,6 +271,17 @@
return _hasLocalParams.booleanValue();
}
}
+
+ /**
+ * Adds a single prefix mapping to this syntax tree node.
+ * @param prefix Namespace prefix.
+ * @param uri Namespace URI.
+ */
+ protected void addPrefixMapping(String prefix, String uri) {
+ if (prefix.equals(EMPTYSTRING) && uri.equals(XHTML_URI)) return;
+ super.addPrefixMapping(prefix, uri);
+ }
+
/**
* Store extension URIs
---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org