jackrabbit-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mreut...@apache.org
Subject svn commit: r554884 - /jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java
Date Tue, 10 Jul 2007 09:33:55 GMT
Author: mreutegg
Date: Tue Jul 10 02:33:54 2007
New Revision: 554884

URL: http://svn.apache.org/viewvc?view=rev&rev=554884
Log:
- default namespace cannot be reassigned -> add to reserved uris (see section 7.2 of jsr
170)

Modified:
    jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java

Modified: jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java
URL: http://svn.apache.org/viewvc/jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java?view=diff&rev=554884&r1=554883&r2=554884
==============================================================================
--- jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java
(original)
+++ jackrabbit/trunk/contrib/spi/jcr2spi/src/main/java/org/apache/jackrabbit/jcr2spi/name/NamespaceRegistryImpl.java
Tue Jul 10 02:33:54 2007
@@ -64,6 +64,7 @@
         RESERVED_PREFIXES.add(QName.NS_NT_PREFIX);
         RESERVED_PREFIXES.add(QName.NS_MIX_PREFIX);
         RESERVED_PREFIXES.add(QName.NS_SV_PREFIX);
+        RESERVED_PREFIXES.add(QName.NS_EMPTY_PREFIX);
         // reserved namespace URI's
         RESERVED_URIS.add(QName.NS_XML_URI);
         RESERVED_URIS.add(QName.NS_XMLNS_URI);
@@ -73,6 +74,7 @@
         RESERVED_URIS.add(QName.NS_NT_URI);
         RESERVED_URIS.add(QName.NS_MIX_URI);
         RESERVED_URIS.add(QName.NS_SV_URI);
+        RESERVED_URIS.add(QName.NS_DEFAULT_URI);
         // reserved and predefined namespaces
         RESERVED_NAMESPACES.put(QName.NS_XML_PREFIX, QName.NS_XML_URI);
         RESERVED_NAMESPACES.put(QName.NS_XMLNS_PREFIX, QName.NS_XMLNS_URI);
@@ -81,6 +83,7 @@
         RESERVED_NAMESPACES.put(QName.NS_NT_PREFIX, QName.NS_NT_URI);
         RESERVED_NAMESPACES.put(QName.NS_MIX_PREFIX, QName.NS_MIX_URI);
         RESERVED_NAMESPACES.put(QName.NS_SV_PREFIX, QName.NS_SV_URI);
+        RESERVED_NAMESPACES.put(QName.NS_EMPTY_PREFIX, QName.NS_DEFAULT_URI);
     }
 
     private final HashMap prefixToURI = new HashMap();



Mime
View raw message