Mercurial > repos > IBBoard
view dtds/translation.xsd @ 22:ea058f9ea9d4
Closes #15 - Migrate to schema for translations
* Add XSD and remove DTD for translation document format
* Copy XSD to output on compile
* Make Translations validate against a schema and handle new exceptions caused by Schema use
Also:
* Tweak resolver so that it handles paths starting "dtds/" as a special case instead of just "dtds"
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Sat, 07 Mar 2009 15:52:27 +0000 |
parents | |
children | 2b5e73cb83a3 |
line wrap: on
line source
<?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified"> <xs:complexType name="translationtype"> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="id" type="xs:ID" /> </xs:extension> </xs:simpleContent> </xs:complexType> <xs:element name="translations"> <xs:complexType> <xs:sequence> <xs:element name="translation" maxOccurs="unbounded" type="translationtype"/> </xs:sequence> <xs:attribute name="lang" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:schema>