Fridolin Somers
f38a9927a3
The special character "non breaking space" is not contained in XML syntax by default. So we add it in the file header : <!DOCTYPE stylesheet [<!ENTITY nbsp " " >]> Even if the source code files do no contain this character, it can be that translated files contain it. French for example "Titre :". This entity is missing in all files in koha-tmpl/intranet-tmpl/prog/en/data/ and in some files of koha-tmpl/intranet-tmpl/prog/en/xslt. Test plan : - generate French templates: cd misc/translator ./translate install fr-FR cd ../.. - run test: prove -v t/00-valid-xml.t you get failing error message - apply this patch - translate again - run test again: it passes Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com> Works as described following test plan Tes pass, no errors. Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
86 lines
2.8 KiB
XML
86 lines
2.8 KiB
XML
<?xml version="1.0"?>
|
|
|
|
<!DOCTYPE stylesheet [<!ENTITY nbsp " " >]>
|
|
|
|
<xs:schema xmlns="http://koha-community.org" xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://koha-community.org" elementFormDefault="qualified" attributeFormDefault="unqualified" version="1.1">
|
|
<xs:annotation>
|
|
<xs:documentation>Control field plugin type of materials schema</xs:documentation>
|
|
</xs:annotation>
|
|
|
|
|
|
<xs:element name="Tagfield" type="TagfieldType" nillable="false">
|
|
<xs:annotation>
|
|
<xs:documentation>Element indicating the control field</xs:documentation>
|
|
</xs:annotation>
|
|
</xs:element>
|
|
|
|
|
|
<xs:complexType name="TagfieldType">
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
<xs:element name="Material" type="MaterialType"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="tag" type="controltagDataType" use="required"/>
|
|
</xs:complexType>
|
|
|
|
|
|
<xs:simpleType name="controltagDataType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:whiteSpace value="collapse"/>
|
|
<xs:pattern value="00[1-9A-Za-z]{1}"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
|
|
<xs:complexType name="MaterialType">
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
<xs:element name="name" type="xs:string"/>
|
|
<xs:element name="description" type="xs:string"/>
|
|
<xs:element name="Position" type="PositionType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="id" type="idDataType" use="required"/>
|
|
</xs:complexType>
|
|
|
|
|
|
<xs:simpleType name="idDataType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:whiteSpace value="collapse"/>
|
|
<xs:enumeration value="BKS"/>
|
|
<xs:enumeration value="CF"/>
|
|
<xs:enumeration value="MP"/>
|
|
<xs:enumeration value="MU"/>
|
|
<xs:enumeration value="CR"/>
|
|
<xs:enumeration value="VM"/>
|
|
<xs:enumeration value="MX"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
|
|
<xs:complexType name="PositionType">
|
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
<xs:element name="urltext" type="xs:string" minOccurs="0"/>
|
|
<xs:element name="name" type="xs:string"/>
|
|
<xs:element name="description" type="xs:string"/>
|
|
<xs:element name="Value" type="ValueType" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="url" type="xs:anyURI"/>
|
|
<xs:attribute name="pos" type="posDataType" use="required"/>
|
|
</xs:complexType>
|
|
|
|
|
|
<xs:simpleType name="posDataType">
|
|
<xs:restriction base="xs:string">
|
|
<xs:whiteSpace value="collapse"/>
|
|
<xs:pattern value="[0-9]+(-[0-9]+)?"/>
|
|
</xs:restriction>
|
|
</xs:simpleType>
|
|
|
|
|
|
<xs:complexType name="ValueType">
|
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
<xs:element name="description" type="xs:string"/>
|
|
</xs:sequence>
|
|
<xs:attribute name="code" type="xs:string" use="required"/>
|
|
</xs:complexType>
|
|
|
|
|
|
</xs:schema>
|