Commit bfd598b9 authored by Andreas Kraft's avatar Andreas Kraft

Changed the namespace for the XSD from "hgi.org" to "homegatewayinitiative.org"

parent 2c31adcb
...@@ -31,6 +31,7 @@ You can find further Information here: ...@@ -31,6 +31,7 @@ You can find further Information here:
- Added optional ``<Doc>`` element to Event - Added optional ``<Doc>`` element to Event
- Changed the optionality of the ``<DataPoint>``'s ``type`` attribute to "required". - Changed the optionality of the ``<DataPoint>``'s ``type`` attribute to "required".
- Added [UML diagram](SDT/schema2.0/docs/SDT_Components.md) - Added [UML diagram](SDT/schema2.0/docs/SDT_Components.md)
- Changed the namespace for the XSD from "hgi.org" to "homegatewayinitiative.org".
--- ---
...@@ -71,7 +72,11 @@ The "numbers" could be just integer number, but may also contain letters, e.g. " ...@@ -71,7 +72,11 @@ The "numbers" could be just integer number, but may also contain letters, e.g. "
## Domain / namespace ## Domain / namespace
The SDL now uses the namespace "homegateway.org" as a namespace to identify the schema (also used for includes). The namespace is **not** a URL, but uniquely identifies the namespace and *should* be registered by HGI. The SDL now uses the namespace "homegatewayinitiative.org" as a namespace to identify the schema (also used for includes). The namespace is **not** a URL, but uniquely identifies the namespace and *should* be registered by HGI.
That said, most validating parsers expect **that the namesapce IS a valid URL** or that at least there is a server on the other end rejecting the request. A timeout / no connection / no answer / ... leads to an error.
Therefore, we cannot use the namespace "homegateway.org" because parsers don't get an answer from this address.
......
...@@ -92,7 +92,7 @@ ...@@ -92,7 +92,7 @@
<schemavalidate warn="true"> <schemavalidate warn="true">
<fileset dir="${basedir}/test" includes="*.xml"/> <fileset dir="${basedir}/test" includes="*.xml"/>
<attribute name="http://apache.org/xml/features/xinclude" value="true"/> <attribute name="http://apache.org/xml/features/xinclude" value="true"/>
<schema namespace="http://hgi.org/xml/dal/2.0" <schema namespace="http://homegatewayinitiative.org/xml/dal/2.0"
file="${path.src}/domain.xsd" /> file="${path.src}/domain.xsd" />
<schema namespace="http://www.w3.org/2001/XInclude" <schema namespace="http://www.w3.org/2001/XInclude"
file="${basedir}/etc/XInclude.xsd" /> file="${basedir}/etc/XInclude.xsd" />
......
namespace local = "" namespace local = ""
default namespace xsl = "http://hgi.org/xml/dal/2.0" default namespace xsl = "http://homegatewayinitiative.org/xml/dal/2.0"
namespace xi = "http://www.w3.org/2001/XInclude" namespace xi = "http://www.w3.org/2001/XInclude"
version = "1.0" version = "1.0"
......
targetNamespace="http://hgi.org/xml/dal/2.0" targetNamespace="http://homegatewayinitiative.org/xml/dal/2.0"
xmlns="http://hgi.org/xml/dal/2.0" xmlns="http://homegatewayinitiative.org/xml/dal/2.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"
<locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0"> <locatingRules xmlns="http://thaiopensource.com/ns/locating-rules/1.0">
<namespace ns="http://hgi.org/xml/dal/2.0" typeId="DAL"/> <namespace ns="http://homegatewayinitiative.org/xml/dal/2.0" typeId="DAL"/>
<namespace ns="http://www.w3.org/2001/XInclude" typeId="XINC"/> <namespace ns="http://www.w3.org/2001/XInclude" typeId="XINC"/>
<typeId id="DAL" uri="dal.rnc"/> <typeId id="DAL" uri="dal.rnc"/>
......
<?xml version="1.0" encoding="ISO-8859-1"?><html xmlns:dal="http://hgi.org/xml/dal/1.0" xmlns="http://www.w3.org/1999/xhtml"> <?xml version="1.0" encoding="ISO-8859-1"?><html xmlns:dal="http://homegatewayinitiative.org/xml/dal/2.0" xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<title>Domain hgi.dal.core</title> <title>Domain hgi.dal.core</title>
</head> </head>
......
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://hgi.org/xml/dal/2.0" <xs:schema targetNamespace="http://homegatewayinitiative.org/xml/dal/2.0"
xmlns="http://hgi.org/xml/dal/2.0" xmlns="http://homegatewayinitiative.org/xml/dal/2.0"
xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"> elementFormDefault="qualified">
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
document ... --> document ... -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:dal="http://hgi.org/xml/dal/1.0" xmlns:dal="http://homegatewayinitiative.org/xml/dal/2.0"
xmlns="http://www.w3.org/1999/xhtml" xmlns="http://www.w3.org/1999/xhtml"
xmlns:redirect="http://xml.apache.org/xalan/redirect" xmlns:redirect="http://xml.apache.org/xalan/redirect"
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<Domain xmlns="http://hgi.org/xml/dal/2.0" <Domain xmlns="http://homegatewayinitiative.org/xml/dal/2.0"
id="hgi.dal.core"> id="hgi.dal.core">
<Modules> <Modules>
......
<?xml version="1.0" encoding="iso-8859-1"?> <?xml version="1.0" encoding="iso-8859-1"?>
<Domain xmlns:xi="http://www.w3.org/2001/XInclude" <Domain xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://hgi.org/xml/dal/2.0" xmlns="http://homegatewayinitiative.org/xml/dal/2.0"
id="com.telekom"> id="com.telekom">
<Imports> <Imports>
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<!-- <!--
+................................................+ +................................................+
:Domain:org.hgi : :Domain:org.homegatewayinitiative :
: : : :
: +..........................................+ : : +..........................................+ :
: :Module:BooleanState : : : :Module:BooleanState : :
...@@ -62,8 +62,8 @@ ...@@ -62,8 +62,8 @@
--> -->
<Domain xmlns:xi="http://www.w3.org/2001/XInclude" <Domain xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns="http://hgi.org/xml/dal/2.0" xmlns="http://homegatewayinitiative.org/xml/dal/2.0"
id="org.hgi"> id="org.homegatewayinitiative">
<!-- The following import statements include ModuleClasses from HGI --> <!-- The following import statements include ModuleClasses from HGI -->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment