changeset 64:70d6c2a5d99e

* Move schema from "dtds" folder to "schemas" folder to match warfoundry:429 no-open-ticket
author IBBoard <dev@ibboard.co.uk>
date Wed, 16 Dec 2009 20:48:10 +0000
parents 8fe11cd7d3bf
children 980ebd49c40b
files IBBoard.csproj Lang/Translation.cs dtds/translation.xsd schemas/translation.xsd
diffstat 4 files changed, 20 insertions(+), 20 deletions(-) [+]
line diff
     1.1 --- a/IBBoard.csproj	Mon Nov 30 21:00:05 2009 +0000
     1.2 +++ b/IBBoard.csproj	Wed Dec 16 20:48:10 2009 +0000
     1.3 @@ -149,7 +149,7 @@
     1.4    <ItemGroup>
     1.5      <None Include="COPYING.GPL" />
     1.6      <None Include="COPYING.LGPL" />
     1.7 -    <None Include="dtds\translation.xsd">
     1.8 +    <None Include="schemas\translation.xsd">
     1.9        <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
    1.10      </None>
    1.11    </ItemGroup>
     2.1 --- a/Lang/Translation.cs	Mon Nov 30 21:00:05 2009 +0000
     2.2 +++ b/Lang/Translation.cs	Wed Dec 16 20:48:10 2009 +0000
     2.3 @@ -113,7 +113,7 @@
     2.4  					settings.ValidationFlags = XmlSchemaValidationFlags.ReportValidationWarnings;
     2.5  					settings.ValidationEventHandler+= new ValidationEventHandler(ValidationEventMethod);
     2.6  					XmlSchemaSet cache = new XmlSchemaSet();
     2.7 -					cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/dtds/translation.xsd");
     2.8 +					cache.Add("http://ibboard.co.uk/translation", translationDir.Parent.FullName + "/schemas/translation.xsd");
     2.9  					settings.Schemas.Add(cache);
    2.10  				}
    2.11  				catch (DirectoryNotFoundException ex)
     3.1 --- a/dtds/translation.xsd	Mon Nov 30 21:00:05 2009 +0000
     3.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.3 @@ -1,18 +0,0 @@
     3.4 -<?xml version="1.0"?>
     3.5 -<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified">
     3.6 -<xs:complexType name="translationtype">
     3.7 -    <xs:simpleContent>
     3.8 -      <xs:extension base="xs:string">
     3.9 -        <xs:attribute name="id" type="xs:ID" />
    3.10 -      </xs:extension>
    3.11 -    </xs:simpleContent>
    3.12 -</xs:complexType>
    3.13 -<xs:element name="translations">
    3.14 -  <xs:complexType>
    3.15 -    <xs:sequence>
    3.16 -      <xs:element name="translation" minOccurs="0" maxOccurs="unbounded" type="translationtype"/>
    3.17 -    </xs:sequence>
    3.18 -    <xs:attribute name="lang" type="xs:string" use="required"/>
    3.19 -  </xs:complexType>
    3.20 -</xs:element>
    3.21 -</xs:schema>
    3.22 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/schemas/translation.xsd	Wed Dec 16 20:48:10 2009 +0000
     4.3 @@ -0,0 +1,18 @@
     4.4 +<?xml version="1.0"?>
     4.5 +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified">
     4.6 +<xs:complexType name="translationtype">
     4.7 +    <xs:simpleContent>
     4.8 +      <xs:extension base="xs:string">
     4.9 +        <xs:attribute name="id" type="xs:ID" />
    4.10 +      </xs:extension>
    4.11 +    </xs:simpleContent>
    4.12 +</xs:complexType>
    4.13 +<xs:element name="translations">
    4.14 +  <xs:complexType>
    4.15 +    <xs:sequence>
    4.16 +      <xs:element name="translation" minOccurs="0" maxOccurs="unbounded" type="translationtype"/>
    4.17 +    </xs:sequence>
    4.18 +    <xs:attribute name="lang" type="xs:string" use="required"/>
    4.19 +  </xs:complexType>
    4.20 +</xs:element>
    4.21 +</xs:schema>
    4.22 \ No newline at end of file