Mercurial > repos > IBBoard
view dtds/translation.xsd @ 35:2b5e73cb83a3
Re #21 - Reduce specificity of translations file
* Add minOccurs="0" to XSD
* Remove check for zero translations returned
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 19 May 2009 19:35:34 +0000 |
parents | ea058f9ea9d4 |
children |
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" minOccurs="0" maxOccurs="unbounded" type="translationtype"/> </xs:sequence> <xs:attribute name="lang" type="xs:string" use="required"/> </xs:complexType> </xs:element> </xs:schema>