lenya/src/java/org/apache/lenya/xml NamespaceHelper.java,1.10,1.11

Christian Egli <[email protected]>
Newsgroups gmane.comp.cms.wyona.cvs
Message-ID <[email protected]>
Update of /repository/lenya/src/java/org/apache/lenya/xml
In directory erbium:/tmp/cvs-serv16729/src/java/org/apache/lenya/xml

Modified Files:
	NamespaceHelper.java 
Log Message:
Fixed a bug to do with empty string namespace prefixes.


Index: NamespaceHelper.java
===================================================================
RCS file: /repository/lenya/src/java/org/apache/lenya/xml/NamespaceHelper.java,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** NamespaceHelper.java	24 Apr 2003 13:53:14 -0000	1.10
--- NamespaceHelper.java	7 May 2003 16:45:37 -0000	1.11
***************
*** 145,149 ****
       */
      public String getQualifiedName(String localName) {
!         return getPrefix() + ":" + localName;
      }
  
--- 145,153 ----
       */
      public String getQualifiedName(String localName) {
! 	if (getPrefix().equals("")) {
! 	    return localName;
! 	} else {
! 	    return getPrefix() + ":" + localName;
! 	}
      }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.