<?xml version="1.0" encoding="UTF-8"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:annotation> <xsd:documentation>XML schema 1.0 of *.loc files, as understood by GNU gettext. Copyright (C) 2015-2024 Free Software Foundation, Inc. This file is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This file is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>. Written by Bruno Haible <bruno@clisp.org>, 2024. </xsd:documentation></xsd:annotation> <xsd:element name="locatingRules" type="LocatingRulesType"> <xsd:annotation> <xsd:documentation></xsd:documentation> </xsd:annotation> </xsd:element> <xsd:complexType name="LocatingRulesType"> <xsd:annotation> <xsd:documentation>Example: <locatingRules> <locatingRule name="Glade" pattern="*.glade"> <documentRule localName="GTK-Interface" target="glade1.its"/> <documentRule localName="glade-interface" target="glade2.its"/> <documentRule localName="interface" target="gtkbuilder.its"/> </locatingRule> <locatingRule name="Glade" pattern="*.glade2"> <documentRule localName="glade-interface" target="glade2.its"/> </locatingRule> <locatingRule name="Glade" pattern="*.ui"> <documentRule localName="interface" target="gtkbuilder.its"/> </locatingRule> </locatingRules> </xsd:documentation></xsd:annotation> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element name="locatingRule" type="LocatingRuleType"> <xsd:annotation> <xsd:documentation></xsd:documentation> </xsd:annotation></xsd:element> </xsd:sequence> </xsd:complexType> <xsd:complexType name="LocatingRuleType"> <xsd:annotation> <xsd:documentation>Example: &lt;locatingRule name=&quot;Glade&quot; pattern=&quot;*.glade&quot;&gt; &lt;documentRule localName=&quot;GTK-Interface&quot; target=&quot;glade1.its&quot;/&gt; &lt;documentRule localName=&quot;glade-interface&quot; target=&quot;glade2.its&quot;/&gt; &lt;documentRule localName=&quot;interface&quot; target=&quot;gtkbuilder.its&quot;/&gt; &lt;/locatingRule&gt; Note: An instance should not have both the 'target' attribute and a 'documentRule' child at the same time. </xsd:documentation></xsd:annotation> <xsd:sequence minOccurs="0" maxOccurs="unbounded"> <xsd:element name="documentRule" type="DocumentRuleType"></xsd:element> </xsd:sequence> <xsd:attribute name="pattern" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="name" type="xsd:string" use="optional"></xsd:attribute> <xsd:attribute name="target" type="xsd:string" use="optional"></xsd:attribute> <!-- Valid in XML Schema 1.1 only: <xsd:assert test="not(@target and documentRule)"/> --> </xsd:complexType> <xsd:complexType name="DocumentRuleType"> <xsd:annotation> <xsd:documentation>Example: <documentRule localName="GTK-Interface" target="glade1.its"/> </xsd:documentation> </xsd:annotation> <xsd:attribute name="target" type="xsd:string" use="required"></xsd:attribute> <xsd:attribute name="ns" type="xsd:string" use="optional"></xsd:attribute> <xsd:attribute name="localName" type="xsd:string" use="optional"></xsd:attribute> </xsd:complexType> </xsd:schema>