You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hivemind.apache.org by hi...@jakarta.apache.org on 2004/06/22 11:06:39 UTC
[jira] Updated: (HIVEMIND-9) SimpleDataLanguageParser works with NULL namespace
The following issue has been updated:
Updater: Dieter Bogdoll (mailto:XZTYOYWEHSIC@spammotel.com)
Date: Tue, 22 Jun 2004 2:05 AM
Changes:
Attachment changed to patch.txt
---------------------------------------------------------------------
For a full history of the issue, see:
http://issues.apache.org/jira/browse/HIVEMIND-9?page=history
---------------------------------------------------------------------
View the issue:
http://issues.apache.org/jira/browse/HIVEMIND-9
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HIVEMIND-9
Summary: SimpleDataLanguageParser works with NULL namespace
Type: Bug
Status: Unassigned
Priority: Minor
Project: HiveMind
Components:
framework
Versions:
1.0
Assignee:
Reporter: Dieter Bogdoll
Created: Tue, 22 Jun 2004 2:04 AM
Updated: Tue, 22 Jun 2004 2:05 AM
Description:
SimpleDataLanguageParser calls the ContentHandler with a null namespace argument instead of "". That leads to some problems if you want to use transformers.
Here is a patch for eclipse to correct this:
Index: SimpleDataLanguageParser.jj
===================================================================
RCS file: /home/cvspublic/jakarta-hivemind/framework/src/javacc/SimpleDataLanguageParser.jj,v
retrieving revision 1.1
diff -u -r1.1 SimpleDataLanguageParser.jj
--- SimpleDataLanguageParser.jj 21 May 2004 18:46:54 -0000 1.1
+++ SimpleDataLanguageParser.jj 22 Jun 2004 09:02:31 -0000
@@ -71,7 +71,7 @@
{
// No namespace, no qualified name
- try { _handler.startElement(null, elementName, null, attributes); }
+ try { _handler.startElement("", elementName, elementName, attributes); }
catch (SAXException ex) { handleException(ex); }
}
@@ -79,7 +79,7 @@
{
// No namespace, no qualified name
- try { _handler.endElement(null, elementName, elementName); }
+ try { _handler.endElement("", elementName, elementName); }
catch (SAXException ex) { handleException(ex); }
}
@@ -100,7 +100,7 @@
private void addAttribute(AttributesImpl attributes, String name, String value)
{
- attributes.addAttribute(null, name, name, "CDATA", value);
+ attributes.addAttribute("", name, name, "CDATA", value);
}
private String unquote(String input)
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-dev-help@jakarta.apache.org