[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kdom
From:       Frans Englich <frans.englich () telia ! com>
Date:       2005-04-27 14:23:14
Message-ID: 20050427142314.94FEA630 () office ! kde ! org
[Download RAW message or body]

CVS commit by englich: 

Make schema type identifiers publically available in Namespace.h


  M +17 -0     Namespace.h   1.6
  M +2 -4      impl/DOMImplementationImpl.cc   1.23


--- kdenonbeta/kdom/Namespace.h  #1.5:1.6
@@ -86,4 +86,21 @@ namespace KDOM
          */
         const DOMString NS_CATALOG = "urn:oasis:names:tc:entity:xmlns:xml:catalog";
+
+        /**
+         * Not a namespace to be precise, but is a URI 
+         * which identifies a schema of type DTD.
+         *
+         * Specification: http://www.w3.org/TR/DOM-Level-3-LS/
+         */
+        const DOMString NS_SCHEMATYPE_DTD = "http://www.w3.org/TR/REC-xml";
+
+        /**
+         * Not a namespace to be precise, but is a nURI 
+         * which identifies a schema of type W3C XML Schema(WXS).
+         *
+         * Specification: http://www.w3.org/TR/DOM-Level-3-LS/
+         */
+        const DOMString NS_SCHEMATYPE_WXS = "http://www.w3.org/2001/XMLSchema";
+
 };
 

--- kdenonbeta/kdom/impl/DOMImplementationImpl.cc  #1.22:1.23
@@ -24,4 +24,5 @@
 
 #include "Helper.h"
+#include "Namespace.h"
 #include "KDOMCache.h"
 #include "NodeKeeper.h"
@@ -134,12 +135,9 @@ CSSStyleSheetImpl *DOMImplementationImpl
 }
 
-const DOMString XML_DTD = "http://www.w3.org/TR/REC-xml";
-const DOMString XML_SCHEMA = "http://www.w3.org/2001/XMLSchema";
-
 LSParserImpl *DOMImplementationImpl::createLSParser(unsigned short mode, const \
DOMString &schemaType)  {
         // NOT_SUPPORTED_ERR: Raised if the requested mode or schema type is not \
supported.  if((mode == 0 || mode > MODE_ASYNCHRONOUS) ||
-                !(schemaType == XML_DTD || schemaType == XML_SCHEMA || \
schemaType.isEmpty())) +                !(schemaType == NS_SCHEMATYPE_DTD || \
schemaType == NS_SCHEMATYPE_WXS || schemaType.isEmpty()))  throw new \
DOMExceptionImpl(NOT_SUPPORTED_ERR);  


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic