Skip to content

Commit

Permalink
added support for deprecated attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
david-waltermire committed Jan 30, 2022
1 parent 750531c commit 22eacdb
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions toolchains/xslt-M4/validate/metaschema.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
</xs:sequence>
<xs:attribute name="name" use="required" type="xs:NCName"/>
<xs:attribute name="scope" type="m:ScopeType" default="global"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand Down Expand Up @@ -117,6 +118,7 @@
<xs:attribute name="collapsible" type="m:BooleanType" default="no"/>
<xs:attribute name="name" use="required" type="xs:NCName"/>
<xs:attribute name="scope" type="m:ScopeType" default="global"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand All @@ -139,6 +141,7 @@
<!-- datatype should default to 'string' -->
<xs:attribute name="as-type" type="m:SimpleDatatypesType" default="string"/>
<xs:attribute name="scope" type="m:ScopeType" default="global"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand Down Expand Up @@ -167,6 +170,7 @@
</xs:sequence>
<xs:attributeGroup ref="m:CardinalitySpecificationGroup"/>
<xs:attribute name="name" use="required" type="xs:NCName"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand Down Expand Up @@ -203,6 +207,7 @@
in XML.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand All @@ -221,6 +226,7 @@
<!-- datatype should default to 'string' -->
<xs:attribute name="as-type" type="m:SimpleDatatypesType" default="string"/>
<xs:attribute name="required" type="m:BooleanType" default="no"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>

Expand Down Expand Up @@ -350,6 +356,7 @@
</xs:sequence>
<xs:attribute name="ref" use="required" type="xs:NCName"/>
<xs:attributeGroup ref="m:CardinalitySpecificationGroup"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
Expand All @@ -372,6 +379,7 @@
in XML.</xs:documentation>
</xs:annotation>
</xs:attribute>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
Expand Down Expand Up @@ -494,6 +502,12 @@
</xs:complexType>
</xs:element>

<xs:attribute name="deprecated" type="m:VersionType">
<xs:annotation>
<xs:documentation>The associated construct has been deprecated at the specified version. Its use should be avoided if possible.</xs:documentation>
</xs:annotation>
</xs:attribute>

<xs:element name="p" type="m:MarkupLineType">
<xs:annotation>
<xs:documentation>A paragraph or paragraph fragment, in documentation.</xs:documentation>
Expand All @@ -519,6 +533,7 @@
</xs:sequence>
<xs:attribute name="ref" use="required" type="xs:NCName"/>
<xs:attribute name="required" type="m:BooleanType" default="no"/>
<xs:attribute ref="m:deprecated"/>
<xs:anyAttribute processContents="lax"/>
</xs:complexType>
</xs:element>
Expand Down Expand Up @@ -1073,4 +1088,10 @@
</xs:enumeration>
</xs:restriction>
</xs:simpleType>

<xs:simpleType name="VersionType">
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>

0 comments on commit 22eacdb

Please sign in to comment.