Skip to content

Commit

Permalink
Reformat xsd with xmlllint
Browse files Browse the repository at this point in the history
  • Loading branch information
dr0i committed Dec 7, 2020
1 parent 3d48709 commit bc0e161
Showing 1 changed file with 101 additions and 117 deletions.
218 changes: 101 additions & 117 deletions src/main/resources/schemata/metamorph.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@
<choice minOccurs="0" maxOccurs="unbounded">
<element ref="tns:macro"/>
<element ref="xi:include"/>
</choice>
<attribute ref="xml:base" />
</choice>
<attribute ref="xml:base"/>
</complexType>
</element>
<element name="macro">
Expand Down Expand Up @@ -207,8 +207,8 @@ customised.
<attribute name="name" type="string" use="optional"/>
<attribute name="value" type="string" use="optional"/>
<attribute name="flushWith" type="string" use="optional"/>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false" />
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
</complexType>
</element>
<element name="any">
Expand Down Expand Up @@ -243,8 +243,8 @@ generated by the all-statement can be customised.
<attribute name="name" type="string" use="optional"/>
<attribute name="value" type="string" use="optional"/>
<attribute name="flushWith" type="string" use="optional" default="record"/>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false" />
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
</complexType>
</element>
<element name="combine">
Expand All @@ -255,7 +255,7 @@ generated by the all-statement can be customised.
<element ref="tns:postprocess" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="name" type="string" use="required"/>
<attribute name="value" type="string" use="required"/>
<attribute name="value" type="string" use="required"/>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
<attribute name="flushWith" type="string" use="optional"/>
Expand All @@ -269,29 +269,26 @@ generated by the all-statement can be customised.
<element ref="tns:postprocess" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="name" type="string" use="required"/>
<attribute name="value" type="string" use="required"/>
<attribute name="value" type="string" use="required"/>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
<attribute name="flushWith" type="string" use="optional"/>
</complexType>
</element>
<element name="containsFilter">
<complexType>
<sequence>
<element ref="tns:if" minOccurs="0" maxOccurs="1"/>
<group ref="tns:literal-rule" minOccurs="1" maxOccurs="unbounded"/>
<element ref="tns:postprocess" minOccurs="0" maxOccurs="1"/>
</sequence>
<attribute name="name" type="string" use="required"/>
<attribute name="value" type="string" use="required"/>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
<attribute name="flushWith" type="string" use="optional"/>
</complexType>
</element>
<element name="containsFilter">
<complexType>
<sequence>
<element ref="tns:if" minOccurs="0" maxOccurs="1" />
<group ref="tns:literal-rule" minOccurs="1" maxOccurs="unbounded" />
<element ref="tns:postprocess" minOccurs="0" maxOccurs="1" />
</sequence>
<attribute name="name" type="string" use="required" />
<attribute name="value" type="string" use="required" />

<attribute name="reset" type="boolean" use="optional"
default="false" />
<attribute name="sameEntity" type="boolean" use="optional"
default="false" />
<attribute name="flushWith" type="string" use="optional" />
</complexType>
</element>
</element>
<element name="concat">
<annotation>
<documentation>Concatenates all received literals</documentation>
Expand All @@ -305,16 +302,15 @@ generated by the all-statement can be customised.
<attribute name="name" type="string" use="required"/>
<attribute name="delimiter" type="string" use="required"/>
<attribute name="prefix" type="string" use="optional"/>
<attribute name="postfix" type="string" use="optional"/>
<attribute name="reverse" type="boolean" use="optional" default="false">
<annotation>
<documentation>If true values are not appended at the end
<attribute name="postfix" type="string" use="optional"/>
<attribute name="reverse" type="boolean" use="optional" default="false">
<annotation>
<documentation>If true values are not appended at the end
of the output string but prepended at its start.</documentation>
</annotation>
</attribute>

</annotation>
</attribute>
<attribute name="flushWith" type="string" use="optional" default="record"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false" />
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
<attribute name="reset" type="boolean" use="optional" default="true"/>
</complexType>
</element>
Expand Down Expand Up @@ -352,7 +348,7 @@ decreasing order of definition.
<attribute name="name" type="string" use="optional"/>
<attribute name="value" type="string" use="optional"/>
<!-- <attribute name="defaultValue" type="string" use="optional" /> -->
<attribute name="reset" type="boolean" use="optional" default="true" />
<attribute name="reset" type="boolean" use="optional" default="true"/>
<attribute name="flushWith" type="string" use="optional" default="record"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
</complexType>
Expand Down Expand Up @@ -385,17 +381,16 @@ decreasing order of definition.
<element ref="tns:if" minOccurs="0" maxOccurs="1"/>
<element ref="tns:entity-name" minOccurs="0" maxOccurs="1"/>
<group ref="tns:literal-rule" minOccurs="0" maxOccurs="unbounded"/>
<element ref="tns:entity"/>
<element ref="tns:call-macro" />

<element ref="tns:entity"/>
<element ref="tns:call-macro"/>
</choice>
<attribute name="name" type="string" use="optional">
<annotation>
<documentation>Name of the entity. If not given the entity must have an entity-name
element.
</documentation>
</annotation>
</attribute>
</attribute>
<attribute name="reset" type="boolean" use="optional" default="false"/>
<attribute name="sameEntity" type="boolean" use="optional" default="false"/>
<attribute name="flushWith" type="string" use="optional"/>
Expand Down Expand Up @@ -593,8 +588,8 @@ collector.
<element ref="tns:square"/>
<element ref="tns:tuples"/>
<element ref="tns:range"/>
<element ref="tns:equalsFilter"/>
<element ref="tns:containsFilter" />
<element ref="tns:equalsFilter"/>
<element ref="tns:containsFilter"/>
</choice>
</group>
<group name="function">
Expand All @@ -608,14 +603,12 @@ collector.
<element ref="tns:blacklist"/>
<element ref="tns:isbn"/>
<element ref="tns:equals"/>
<element ref="tns:not-equals"/>
<element ref="tns:contains" />
<element ref="tns:not-contains" />

<element ref="tns:not-equals"/>
<element ref="tns:contains"/>
<element ref="tns:not-contains"/>
<element ref="tns:case"/>
<element ref="tns:timestamp" />
<element ref="tns:dateformat" />

<element ref="tns:timestamp"/>
<element ref="tns:dateformat"/>
<element ref="tns:htmlanchor"/>
<element ref="tns:trim"/>
<element ref="tns:split"/>
Expand All @@ -631,7 +624,7 @@ collector.
<element ref="tns:script"/>
<element ref="tns:setreplace"/>
<element ref="tns:java"/>
<element ref="tns:urlescape"/>
<element ref="tns:urlescape"/>
<element ref="tns:sanitizeUrl"/>
</choice>
</group>
Expand Down Expand Up @@ -834,19 +827,16 @@ to Java Regular Expressions.
<complexType>
<attribute name="string" type="string" use="required"/>
</complexType>
</element>

<element name="contains">
<annotation>
<documentation>Returns the value only if given string is contained.
</element>
<element name="contains">
<annotation>
<documentation>Returns the value only if given string is contained.
</documentation>
</annotation>
<complexType>
<attribute name="string" type="string" use="required" />
</complexType>
</element>


</annotation>
<complexType>
<attribute name="string" type="string" use="required"/>
</complexType>
</element>
<element name="unique">
<annotation>
<documentation>Filters out dublicate literals</documentation>
Expand Down Expand Up @@ -886,19 +876,16 @@ to Java Regular Expressions.
<complexType>
<attribute name="string" type="string" use="required"/>
</complexType>
</element>

<element name="not-contains">
<annotation>
<documentation>Returns value only if given string is not contained.
</element>
<element name="not-contains">
<annotation>
<documentation>Returns value only if given string is not contained.
</documentation>
</annotation>
<complexType>
<attribute name="string" type="string" use="required" />
</complexType>
</element>


</annotation>
<complexType>
<attribute name="string" type="string" use="required"/>
</complexType>
</element>
<element name="buffer">
<annotation>
<documentation>Buffers literals and resleases them on a flush signal. (Used to delay
Expand All @@ -925,50 +912,47 @@ litereals)
<attribute name="language" type="string" use="optional"/>
</complexType>
</element>

<element name="timestamp">
<annotation>
<documentation>Current timestamp/time.</documentation>
</annotation>
<complexType>
<attribute name="format" type="string" use="optional" default="timestamp"/>
<attribute name="timezone" type="string" use="optional" default="UTC"/>
<attribute name="language" type="string" use="optional" />
</complexType>
</element>

<element name="dateformat">
<annotation>
<documentation>Format a date in a specific format.</documentation>
</annotation>
<complexType>
<attribute name="inputformat" type="string" use="optional" default="dd.MM.yyyy" />
<attribute name="fallback" type="string" use="optional" />
<attribute name="outputpattern" type="string" use="optional"/>
<attribute name="outputformat" use="optional" default="LONG">
<simpleType>
<restriction base="string">
<enumeration value="FULL" />
<enumeration value="LONG" />
<enumeration value="MEDIUM" />
<enumeration value="SHORT" />
</restriction>
</simpleType>
</attribute>
<attribute name="era" use="optional" default="AUTO">
<simpleType>
<restriction base="string">
<enumeration value="AUTO" />
<enumeration value="AD" />
<enumeration value="BC" />
</restriction>
</simpleType>
</attribute>
<attribute name="removeLeadingZeros" type="boolean" use="optional" default="false" />
<attribute name="language" type="string" use="optional" />
</complexType>
</element>

<element name="timestamp">
<annotation>
<documentation>Current timestamp/time.</documentation>
</annotation>
<complexType>
<attribute name="format" type="string" use="optional" default="timestamp"/>
<attribute name="timezone" type="string" use="optional" default="UTC"/>
<attribute name="language" type="string" use="optional"/>
</complexType>
</element>
<element name="dateformat">
<annotation>
<documentation>Format a date in a specific format.</documentation>
</annotation>
<complexType>
<attribute name="inputformat" type="string" use="optional" default="dd.MM.yyyy"/>
<attribute name="fallback" type="string" use="optional"/>
<attribute name="outputpattern" type="string" use="optional"/>
<attribute name="outputformat" use="optional" default="LONG">
<simpleType>
<restriction base="string">
<enumeration value="FULL"/>
<enumeration value="LONG"/>
<enumeration value="MEDIUM"/>
<enumeration value="SHORT"/>
</restriction>
</simpleType>
</attribute>
<attribute name="era" use="optional" default="AUTO">
<simpleType>
<restriction base="string">
<enumeration value="AUTO"/>
<enumeration value="AD"/>
<enumeration value="BC"/>
</restriction>
</simpleType>
</attribute>
<attribute name="removeLeadingZeros" type="boolean" use="optional" default="false"/>
<attribute name="language" type="string" use="optional"/>
</complexType>
</element>
<element name="constant">
<annotation>
<documentation>Sets literal value to a constant.</documentation>
Expand Down

0 comments on commit bc0e161

Please sign in to comment.