Mercurial > repos > IBBoard.Tests
view test-data/schemas/translation.xsd @ 14:15cf2fe2a627
Re #30: Improve Translations API
* Add translations tests and test data
* Add reset method to translations
* Fix translations where API documentation (contract) didn't match behaviour
author | IBBoard <dev@ibboard.co.uk> |
---|---|
date | Tue, 06 Apr 2010 14:40:35 +0000 |
parents | |
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>