annotate schemas/translation.xsd @ 79:a70d89de1435

Re #32: Add staged loading of translations * Add "extends" attribute to schema so that translation files can define what they extend * Add "get parent language" method to extractor * Move loader to using XML translation sets
author IBBoard <dev@ibboard.co.uk>
date Fri, 09 Apr 2010 19:48:51 +0000
parents 70d6c2a5d99e
children 13f0ffb012cb
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
1 <?xml version="1.0"?>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
2 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://ibboard.co.uk/translation" xmlns="http://ibboard.co.uk/translation" elementFormDefault="qualified">
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
3 <xs:complexType name="translationtype">
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
4 <xs:simpleContent>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
5 <xs:extension base="xs:string">
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
6 <xs:attribute name="id" type="xs:ID" />
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
7 </xs:extension>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
8 </xs:simpleContent>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
9 </xs:complexType>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
10 <xs:element name="translations">
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
11 <xs:complexType>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
12 <xs:sequence>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
13 <xs:element name="translation" minOccurs="0" maxOccurs="unbounded" type="translationtype"/>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
14 </xs:sequence>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
15 <xs:attribute name="lang" type="xs:string" use="required"/>
79
a70d89de1435 Re #32: Add staged loading of translations
IBBoard <dev@ibboard.co.uk>
parents: 64
diff changeset
16 <xs:attribute name="extends" type="xs:string" default=""/>
64
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
17 </xs:complexType>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
18 </xs:element>
70d6c2a5d99e * Move schema from "dtds" folder to "schemas" folder to match warfoundry:429
IBBoard <dev@ibboard.co.uk>
parents:
diff changeset
19 </xs:schema>