You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by js...@apache.org on 2002/06/14 17:25:18 UTC
cvs commit: jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser XMLParser.java
jstrachan 2002/06/14 08:25:18
Modified: jelly/src/java/org/apache/commons/jelly/parser
XMLParser.java
Log:
Explicitly ensure that "" is used to denote no namespace when resolving a tag library
Revision Changes Path
1.22 +11 -5 jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java
Index: XMLParser.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/jelly/src/java/org/apache/commons/jelly/parser/XMLParser.java,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -r1.21 -r1.22
--- XMLParser.java 14 Jun 2002 06:53:03 -0000 1.21
+++ XMLParser.java 14 Jun 2002 15:25:18 -0000 1.22
@@ -115,6 +115,7 @@
import org.xml.sax.SAXException;
import org.xml.sax.SAXParseException;
import org.xml.sax.XMLReader;
+
/** <p><code>XMLParser</code> parses the XML Jelly format.
* The SAXParser and XMLReader portions of this code come from Digester.</p>
*
@@ -570,6 +571,11 @@
throws SAXException {
try {
+ // add check to ensure namespace URI is "" for no namespace
+ if ( namespaceURI == null ) {
+ namespaceURI = "";
+ }
+
// if this is a tag then create a script to run it
// otherwise pass the text to the current body
tagScript = createTag(namespaceURI, localName, list);
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>