Skip to content

Commit

Permalink
Low: xml: use spaces instead of tabs in schema files
Browse files Browse the repository at this point in the history
there are tabs in files of xml dirctory which makes it not convenient to read when tab is
not eight in some vimrc, this patch replaced tabs with 8 blanks
  • Loading branch information
Bin Liu committed Apr 2, 2016
1 parent 5a6cdd1 commit 3e6d9cf
Show file tree
Hide file tree
Showing 27 changed files with 1,727 additions and 1,727 deletions.
64 changes: 32 additions & 32 deletions xml/acls-1.2.rng
Original file line number Diff line number Diff line change
Expand Up @@ -10,58 +10,58 @@
<define name="element-acls">
<element name="acls">
<zeroOrMore>
<choice>
<element name="acl_user">
<attribute name="id"><data type="ID"/></attribute>
<choice>
<zeroOrMore>
<element name="role_ref">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
<zeroOrMore>
<ref name="element-acl"/>
</zeroOrMore>
</choice>
</element>
<element name="acl_role">
<attribute name="id"><data type="ID"/></attribute>
<zeroOrMore>
<ref name="element-acl"/>
</zeroOrMore>
</element>
</choice>
<choice>
<element name="acl_user">
<attribute name="id"><data type="ID"/></attribute>
<choice>
<zeroOrMore>
<element name="role_ref">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
<zeroOrMore>
<ref name="element-acl"/>
</zeroOrMore>
</choice>
</element>
<element name="acl_role">
<attribute name="id"><data type="ID"/></attribute>
<zeroOrMore>
<ref name="element-acl"/>
</zeroOrMore>
</element>
</choice>
</zeroOrMore>
</element>
</define>

<define name="element-acl">
<choice>
<element name="read">
<ref name="attribute-acl"/>
<ref name="attribute-acl"/>
</element>
<element name="write">
<ref name="attribute-acl"/>
<ref name="attribute-acl"/>
</element>
<element name="deny">
<ref name="attribute-acl"/>
<ref name="attribute-acl"/>
</element>
</choice>
</define>

<define name="attribute-acl">
<attribute name="id"><data type="ID"/></attribute>
<choice>
<attribute name="tag"><text/></attribute>
<attribute name="ref"><data type="IDREF"/></attribute>
<group>
<attribute name="tag"><text/></attribute>
<attribute name="ref"><data type="IDREF"/></attribute>
</group>
<attribute name="xpath"><text/></attribute>
<attribute name="tag"><text/></attribute>
<attribute name="ref"><data type="IDREF"/></attribute>
<group>
<attribute name="tag"><text/></attribute>
<attribute name="ref"><data type="IDREF"/></attribute>
</group>
<attribute name="xpath"><text/></attribute>
</choice>
<optional>
<attribute name="attribute"><text/></attribute>
<attribute name="attribute"><text/></attribute>
</optional>
</define>

Expand Down
96 changes: 48 additions & 48 deletions xml/acls-2.0.rng
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@
<define name="element-acls">
<element name="acls">
<zeroOrMore>
<choice>
<element name="acl_target">
<attribute name="id"><text/></attribute>
<zeroOrMore>
<element name="role">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
</element>
<element name="acl_group">
<!-- Here 'id' is the name of a unix group -->
<attribute name="id"><data type="ID"/></attribute>
<zeroOrMore>
<element name="role">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
</element>
<element name="acl_role">
<attribute name="id"><data type="ID"/></attribute>
<optional>
<attribute name="description"><text/></attribute>
</optional>
<zeroOrMore>
<ref name="element-permission"/>
</zeroOrMore>
</element>
</choice>
<choice>
<element name="acl_target">
<attribute name="id"><text/></attribute>
<zeroOrMore>
<element name="role">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
</element>
<element name="acl_group">
<!-- Here 'id' is the name of a unix group -->
<attribute name="id"><data type="ID"/></attribute>
<zeroOrMore>
<element name="role">
<attribute name="id"><data type="IDREF"/></attribute>
</element>
</zeroOrMore>
</element>
<element name="acl_role">
<attribute name="id"><data type="ID"/></attribute>
<optional>
<attribute name="description"><text/></attribute>
</optional>
<zeroOrMore>
<ref name="element-permission"/>
</zeroOrMore>
</element>
</choice>
</zeroOrMore>
</element>
</define>
Expand All @@ -47,32 +47,32 @@
<attribute name="id"><data type="ID"/></attribute>

<attribute name="kind">
<choice>
<value>read</value>
<value>write</value>
<value>deny</value>
</choice>
<choice>
<value>read</value>
<value>write</value>
<value>deny</value>
</choice>
</attribute>

<choice>
<attribute name="xpath"><text/></attribute>
<!-- reference is already sufficiently specific without 'object-type' -->
<attribute name="reference"><data type="IDREF"/></attribute>
<group>
<!-- Use 'object-type' to avoid conflicting with the 'tag' configuration concept -->
<attribute name="object-type"><text/></attribute>
<optional>
<!--
does not make sense with anything other than object-type
xpath and reference are already sufficiently specific
-->
<attribute name="attribute"><text/></attribute>
</optional>
</group>
<attribute name="xpath"><text/></attribute>
<!-- reference is already sufficiently specific without 'object-type' -->
<attribute name="reference"><data type="IDREF"/></attribute>
<group>
<!-- Use 'object-type' to avoid conflicting with the 'tag' configuration concept -->
<attribute name="object-type"><text/></attribute>
<optional>
<!--
does not make sense with anything other than object-type
xpath and reference are already sufficiently specific
-->
<attribute name="attribute"><text/></attribute>
</optional>
</group>
</choice>

<optional>
<attribute name="description"><text/></attribute>
<attribute name="description"><text/></attribute>
</optional>
</element>
</define>
Expand Down
Loading

0 comments on commit 3e6d9cf

Please sign in to comment.