cwrc / CWRC-Schema

CWRC Schemas and supporting documents
GNU General Public License v3.0
4 stars 4 forks source link

Sort out XREF content #168

Open ilovan opened 5 years ago

ilovan commented 5 years ago

XREF as defined in the Bio schema inside P:

<element name="XREF">
                        <a:documentation
                            xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The xref
                            element surrounds a url which you wish to make into a
                            hyperlink.</a:documentation>
                        <ref name="RESP-attribute"/>
                        <attribute name="URL">
                            <a:documentation
                                xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">URL
                                (uniform resource locator) specifies the URL from which the media
                                concerned may be obtained.</a:documentation>
                            <data type="anyURI"/>
                        </attribute>
                        <data type="anyURI"/>
                    </element>

XREF as globally defined in the Bio schema and in the Writing schema:

<define name="XREF">
        <element name="XREF">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The xref
                element surrounds a url which you wish to make into a hyperlink.</a:documentation>
            <optional>
                <ref name="RESP-attribute"/>
            </optional>
            <attribute name="URL">
                <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">URL
                    (uniform resource locator) specifies the URL from which the media concerned may
                    be obtained.</a:documentation>
                <data type="anyURI"/>
            </attribute>
            <optional>
                <attribute name="annotationId">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Provides a unique annotation identifier for the element bearing the
                        attribute.</a:documentation>
                </attribute>
            </optional>
            <optional>
                <attribute name="offsetId">
                    <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0"
                        >Designates the parent tag from which the offset is being
                        counted.</a:documentation>
                </attribute>
            </optional>
            <oneOrMore>
                <choice>
                    <text/>
                    <ref name="ORGNAME"/>
                    <ref name="TITLE"/>
                </choice>
            </oneOrMore>
        </element>
    </define>
SusanBrown commented 5 years ago

Don't understand the question.