juddi-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ks...@apache.org
Subject svn commit: r555030 - in /webservices/juddi/trunk/src/main/java/org/apache/juddi/handler: DescriptionHandler.java NameHandler.java
Date Tue, 10 Jul 2007 18:36:36 GMT
Author: kstam
Date: Tue Jul 10 11:36:35 2007
New Revision: 555030

URL: http://svn.apache.org/viewvc?view=rev&rev=555030
Log:
JUDDI-106, applying patch by Jarek Gawor to set the namespace correctly.

Modified:
    webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/DescriptionHandler.java
    webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/NameHandler.java

Modified: webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/DescriptionHandler.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/DescriptionHandler.java?view=diff&rev=555030&r1=555029&r2=555030
==============================================================================
--- webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/DescriptionHandler.java
(original)
+++ webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/DescriptionHandler.java
Tue Jul 10 11:36:35 2007
@@ -62,7 +62,7 @@
 
     String langCode = descr.getLanguageCode();
     if ((langCode != null) && (langCode.trim().length() > 0))
-      element.setAttribute("xml:lang",langCode);
+      element.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang",langCode);
 
     String descrValue = descr.getValue();
     if (descrValue != null)
@@ -81,4 +81,4 @@
     throws Exception
   {
   }
-}
\ No newline at end of file
+}

Modified: webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/NameHandler.java
URL: http://svn.apache.org/viewvc/webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/NameHandler.java?view=diff&rev=555030&r1=555029&r2=555030
==============================================================================
--- webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/NameHandler.java (original)
+++ webservices/juddi/trunk/src/main/java/org/apache/juddi/handler/NameHandler.java Tue Jul
10 11:36:35 2007
@@ -63,7 +63,7 @@
 
     String langCode = name.getLanguageCode();
     if ((langCode != null) && (langCode.trim().length() > 0))
-      element.setAttribute("xml:lang",langCode);
+      element.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:lang",langCode);
 
     String nameValue = name.getValue();
     if (nameValue != null)
@@ -82,4 +82,4 @@
     throws Exception
   {
   }
-}
\ No newline at end of file
+}



---------------------------------------------------------------------
To unsubscribe, e-mail: juddi-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: juddi-cvs-help@ws.apache.org


Mime
View raw message