2008-08-09 Johan Dahlin <johan@gnome.org>
+ * relaxng/api.xml:
+ * relaxng/c-types.xml:
+ * relaxng/g-types.xml:
+ * relaxng/relaxng.rng:
+ * relaxng/util.xml:
+ Remove outdated relaxng schemas.
+
+2008-08-09 Johan Dahlin <johan@gnome.org>
+
* *.[ch]:
Rename metadata to typelib in variable names,
comments and apis.
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<grammar xmlns="http://relaxng.org/ns/structure/1.0">
-
- <include href="c-types.xml"/>
- <include href="g-types.xml"/>
- <include href="util.xml"/>
-
- <define name="namespace">
- <element name="namespace">
- <attribute name="name"/>
- <interleave>
- <zeroOrMore>
- <ref name="object"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="interface"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="enum"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="flags"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="boxed"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="function"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="callback"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="struct"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="union"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="constant"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="errordomain"/>
- </zeroOrMore>
- </interleave>
- </element>
- </define>
-
- <define name="api">
- <element name="api">
- <optional>
- <attribute name="version"/>
- </optional>
- <oneOrMore>
- <ref name="namespace"/>
- </oneOrMore>
- </element>
- </define>
-
- <start>
- <ref name="api"/>
- </start>
-
-</grammar>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<grammar xmlns="http://relaxng.org/ns/structure/1.0">
-
- <define name="type">
- <attribute name="type"/>
- </define>
-
- <!-- CONSTANT -->
- <define name="constant">
- <element name="constant">
- <attribute name="name"/>
- <ref name="type"/>
- <attribute name="value"/>
- <ref name="deprecated"/>
- </element>
- </define>
-
- <!-- ENUM -->
- <define name="enum">
- <element name="enum">
- <attribute name="name"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <ref name="deprecated"/>
- <oneOrMore>
- <ref name="member"/>
- </oneOrMore>
- </element>
- </define>
-
- <define name="member">
- <element name="member">
- <attribute name="name"/>
- <attribute name="value"/>
- <ref name="deprecated"/>
- </element>
- </define>
-
- <!-- UNION -->
- <define name="union">
- <element name="union">
- <attribute name="name"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <optional>
- <attribute name="cname"/>
- </optional>
- <ref name="deprecated"/>
- <oneOrMore>
- <ref name="field"/>
- </oneOrMore>
- </element>
- </define>
-
- <!-- STRUCTURE -->
- <define name="struct">
- <element name="struct">
- <attribute name="name"/>
- <ref name="deprecated"/>
- <optional>
- <attribute name="cname"/>
- </optional>
- <interleave>
- <oneOrMore>
- <ref name="field"/>
- </oneOrMore>
- <zeroOrMore>
- <ref name="method"/>
- </zeroOrMore>
- </interleave>
- </element>
- </define>
-
- <define name="field">
- <element name="field">
- <attribute name="name"/>
- <optional>
- <attribute name="branch"/>
- </optional>
- <optional>
- <attribute name="cname"/>
- </optional>
- <optional>
- <attribute name="offset"/>
- </optional>
- <optional>
- <attribute name="bits"/>
- </optional>
- <optional>
- <attribute name="readable">
- <choice>
- <value>0</value>
- <value>1</value>
- </choice>
- </attribute>
- </optional>
- <optional>
- <attribute name="writable">
- <choice>
- <value>0</value>
- <value>1</value>
- </choice>
- </attribute>
- </optional>
- <ref name="type"/>
- </element>
- </define>
-
- <!-- FUNCTION TYPE -->
- <define name="function">
- <element name="function">
- <attribute name="name"/>
- <attribute name="symbol"/>
- <ref name="deprecated"/>
- <ref name="signature"/>
- </element>
- </define>
-
- <define name="callback">
- <element name="callback">
- <attribute name="name"/>
- <ref name="deprecated"/>
- <ref name="signature"/>
- </element>
- </define>
-
- <define name="signature">
- <interleave>
- <optional>
- <ref name="parameters"/>
- </optional>
- <element name="return-type">
- <ref name="type"/>
- <optional>
- <attribute name="null-ok"/>
- </optional>
- <optional>
- <attribute name="transfer">
- <choice>
- <value>full</value>
- <value>shallow</value>
- <value>none</value>
- </choice>
- </attribute>
- </optional>
- </element>
- </interleave>
- </define>
-
- <define name="parameters">
- <element name="parameters">
- <oneOrMore>
- <ref name="parameter"/>
- </oneOrMore>
- </element>
- </define>
-
- <define name="parameter">
- <element name="parameter">
- <attribute name="name"/>
- <optional>
- <attribute name="direction">
- <choice>
- <value>in</value>
- <value>out</value>
- <value>inout</value>
- </choice>
- </attribute>
- </optional>
- <optional>
- <attribute name="optional">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="null-ok">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="retval">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="dipper">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="transfer">
- <choice>
- <value>full</value>
- <value>shallow</value>
- <value>none</value>
- </choice>
- </attribute>
- </optional>
- <ref name="type"/>
- </element>
- </define>
-
-</grammar>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<grammar xmlns="http://relaxng.org/ns/structure/1.0">
-
- <!-- TYPES -->
-
- <define name="errordomain">
- <element name="errordomain">
- <attribute name="name"/>
- <attribute name="get-quark"/>
- <attribute name="codes"/>
- </element>
- </define>
-
- <define name="flags">
- <element name="flags">
- <attribute name="name"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <ref name="deprecated"/>
- <oneOrMore>
- <ref name="member"/>
- </oneOrMore>
- </element>
- </define>
-
- <define name="boxed">
- <element name="boxed">
- <attribute name="name"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <ref name="deprecated"/>
- <optional>
- <attribute name="cname"/>
- </optional>
- <interleave>
- <zeroOrMore>
- <ref name="constructor"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="field"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="method"/>
- </zeroOrMore>
- </interleave>
- </element>
- </define>
-
- <define name="object">
- <element name="object">
- <attribute name="name"/>
- <attribute name="parent"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <optional>
- <attribute name="cname"/>
- </optional>
- <optional>
- <attribute name="class"/>
- </optional>
- <ref name="deprecated"/>
- <interleave>
- <oneOrMore>
- <ref name="constructor"/>
- </oneOrMore>
- <zeroOrMore>
- <element name="implements">
- <attribute name="name"/>
- </element>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="field"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="method"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="vfunc"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="signal"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="property"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="constant"/>
- </zeroOrMore>
- </interleave>
- </element>
- </define>
-
- <define name="interface">
- <element name="interface">
- <attribute name="name"/>
- <optional>
- <attribute name="type-name"/>
- </optional>
- <optional>
- <attribute name="get-type"/>
- </optional>
- <optional>
- <attribute name="cname"/>
- </optional>
- <optional>
- <attribute name="class"/>
- </optional>
- <ref name="deprecated"/>
- <interleave>
- <zeroOrMore>
- <element name="requires">
- <attribute name="name"/>
- </element>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="method"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="vfunc"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="signal"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="property"/>
- </zeroOrMore>
- <zeroOrMore>
- <ref name="constant"/>
- </zeroOrMore>
- </interleave>
- </element>
- </define>
-
- <!-- ATTRIBUTES -->
- <define name="property">
- <element name="property">
- <attribute name="name"/>
- <attribute name="readable">
- <ref name="zero-one"/>
- </attribute>
- <attribute name="writable">
- <ref name="zero-one"/>
- </attribute>
- <optional>
- <attribute name="construct">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="construct-only">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <ref name="type"/>
- </element>
- </define>
-
- <define name="signal">
- <element name="signal">
- <attribute name="name"/>
- <attribute name="when">
- <choice>
- <value>FIRST</value>
- <value>LAST</value>
- <value>CLEANUP</value>
- </choice>
- </attribute>
- <optional>
- <attribute name="no-recurse">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="detailed">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="action">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="no-hooks">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="has-class-closure">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <ref name="signature"/>
- </element>
- </define>
-
- <define name="method">
- <element name="method">
- <attribute name="name"/>
- <attribute name="symbol"/>
- <optional>
- <attribute name="type">
- <choice>
- <value>getter</value>
- <value>setter</value>
- </choice>
- </attribute>
- </optional>
- <ref name="deprecated"/>
- <ref name="signature"/>
- </element>
- </define>
-
- <define name="constructor">
- <element name="constructor">
- <attribute name="name"/>
- <attribute name="symbol"/>
- <ref name="signature"/>
- </element>
- </define>
-
- <define name="vfunc">
- <element name="vfunc">
- <attribute name="name"/>
- <optional>
- <attribute name="cname"/>
- </optional>
- <optional>
- <attribute name="offset"/>
- </optional>
- <optional>
- <attribute name="must-chain-up">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <optional>
- <attribute name="override">
- <choice>
- <value>always</value>
- <value>never</value>
- <value>maybe</value>
- </choice>
- </attribute>
- </optional>
- <optional>
- <attribute name="is-class-closure">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- <ref name="deprecated"/>
- <ref name="signature"/>
- </element>
- </define>
-
-</grammar>
+++ /dev/null
-<?xml version="1.0"?>
-<!-- RELAX NG for RELAX NG -->
-<!-- $Id: relaxng.rng,v 1.31 2002/05/30 06:07:43 jjc Exp $ -->
-<grammar datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes"
- ns="http://relaxng.org/ns/structure/1.0"
- xmlns="http://relaxng.org/ns/structure/1.0">
- <start>
- <ref name="pattern"/>
- </start>
-
- <define name="pattern">
- <choice>
- <element name="element">
- <choice>
- <attribute name="name">
- <data type="QName"/>
- </attribute>
- <ref name="open-name-class"/>
- </choice>
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="attribute">
- <ref name="common-atts"/>
- <choice>
- <attribute name="name">
- <data type="QName"/>
- </attribute>
- <ref name="open-name-class"/>
- </choice>
- <interleave>
- <ref name="other"/>
- <optional>
- <ref name="pattern"/>
- </optional>
- </interleave>
- </element>
- <element name="group">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="interleave">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="choice">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="optional">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="zeroOrMore">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="oneOrMore">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="list">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="mixed">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- <element name="ref">
- <attribute name="name">
- <data type="NCName"/>
- </attribute>
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="parentRef">
- <attribute name="name">
- <data type="NCName"/>
- </attribute>
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="empty">
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="text">
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="value">
- <optional>
- <attribute name="type">
- <data type="NCName"/>
- </attribute>
- </optional>
- <ref name="common-atts"/>
- <text/>
- </element>
- <element name="data">
- <attribute name="type">
- <data type="NCName"/>
- </attribute>
- <ref name="common-atts"/>
- <interleave>
- <ref name="other"/>
- <group>
- <zeroOrMore>
- <element name="param">
- <attribute name="name">
- <data type="NCName"/>
- </attribute>
- <ref name="common-atts"/>
- <text/>
- </element>
- </zeroOrMore>
- <optional>
- <element name="except">
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- </optional>
- </group>
- </interleave>
- </element>
- <element name="notAllowed">
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="externalRef">
- <attribute name="href">
- <data type="anyURI"/>
- </attribute>
- <ref name="common-atts"/>
- <ref name="other"/>
- </element>
- <element name="grammar">
- <ref name="common-atts"/>
- <ref name="grammar-content"/>
- </element>
- </choice>
- </define>
-
- <define name="grammar-content">
- <interleave>
- <ref name="other"/>
- <zeroOrMore>
- <choice>
- <ref name="start-element"/>
- <ref name="define-element"/>
- <element name="div">
- <ref name="common-atts"/>
- <ref name="grammar-content"/>
- </element>
- <element name="include">
- <attribute name="href">
- <data type="anyURI"/>
- </attribute>
- <ref name="common-atts"/>
- <ref name="include-content"/>
- </element>
- </choice>
- </zeroOrMore>
- </interleave>
- </define>
-
- <define name="include-content">
- <interleave>
- <ref name="other"/>
- <zeroOrMore>
- <choice>
- <ref name="start-element"/>
- <ref name="define-element"/>
- <element name="div">
- <ref name="common-atts"/>
- <ref name="include-content"/>
- </element>
- </choice>
- </zeroOrMore>
- </interleave>
- </define>
-
- <define name="start-element">
- <element name="start">
- <ref name="combine-att"/>
- <ref name="common-atts"/>
- <ref name="open-pattern"/>
- </element>
- </define>
-
- <define name="define-element">
- <element name="define">
- <attribute name="name">
- <data type="NCName"/>
- </attribute>
- <ref name="combine-att"/>
- <ref name="common-atts"/>
- <ref name="open-patterns"/>
- </element>
- </define>
-
- <define name="combine-att">
- <optional>
- <attribute name="combine">
- <choice>
- <value>choice</value>
- <value>interleave</value>
- </choice>
- </attribute>
- </optional>
- </define>
-
- <define name="open-patterns">
- <interleave>
- <ref name="other"/>
- <oneOrMore>
- <ref name="pattern"/>
- </oneOrMore>
- </interleave>
- </define>
-
- <define name="open-pattern">
- <interleave>
- <ref name="other"/>
- <ref name="pattern"/>
- </interleave>
- </define>
-
- <define name="name-class">
- <choice>
- <element name="name">
- <ref name="common-atts"/>
- <data type="QName"/>
- </element>
- <element name="anyName">
- <ref name="common-atts"/>
- <ref name="except-name-class"/>
- </element>
- <element name="nsName">
- <ref name="common-atts"/>
- <ref name="except-name-class"/>
- </element>
- <element name="choice">
- <ref name="common-atts"/>
- <ref name="open-name-classes"/>
- </element>
- </choice>
- </define>
-
- <define name="except-name-class">
- <interleave>
- <ref name="other"/>
- <optional>
- <element name="except">
- <ref name="open-name-classes"/>
- </element>
- </optional>
- </interleave>
- </define>
-
- <define name="open-name-classes">
- <interleave>
- <ref name="other"/>
- <oneOrMore>
- <ref name="name-class"/>
- </oneOrMore>
- </interleave>
- </define>
-
- <define name="open-name-class">
- <interleave>
- <ref name="other"/>
- <ref name="name-class"/>
- </interleave>
- </define>
-
- <define name="common-atts">
- <optional>
- <attribute name="ns"/>
- </optional>
- <optional>
- <attribute name="datatypeLibrary">
- <data type="anyURI"/>
- </attribute>
- </optional>
- <zeroOrMore>
- <attribute>
- <anyName>
- <except>
- <nsName/>
- <nsName ns=""/>
- </except>
- </anyName>
- </attribute>
- </zeroOrMore>
- </define>
-
- <define name="other">
- <zeroOrMore>
- <element>
- <anyName>
- <except>
- <nsName/>
- </except>
- </anyName>
- <zeroOrMore>
- <choice>
- <attribute>
- <anyName/>
- </attribute>
- <text/>
- <ref name="any"/>
- </choice>
- </zeroOrMore>
- </element>
- </zeroOrMore>
- </define>
-
- <define name="any">
- <element>
- <anyName/>
- <zeroOrMore>
- <choice>
- <attribute>
- <anyName/>
- </attribute>
- <text/>
- <ref name="any"/>
- </choice>
- </zeroOrMore>
- </element>
- </define>
-
-</grammar>
+++ /dev/null
-<?xml version="1.0" encoding="utf-8"?>
-<grammar xmlns="http://relaxng.org/ns/structure/1.0">
-
- <define name="deprecated">
- <optional>
- <attribute name="deprecated">
- <ref name="zero-one"/>
- </attribute>
- </optional>
- </define>
-
- <define name="zero-one">
- <choice>
- <value>0</value>
- <value>1</value>
- </choice>
- </define>
-
-</grammar>