cwrc / CWRC-Schema

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

Sort out FIGURE and GRAPHIC elements #174

Open ilovan opened 4 years ago

ilovan commented 4 years ago

Current status:

Defined as follows:

<define name="FIGURE">
        <element name="FIGURE">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">The
                figure element groups elements representing or containing graphic information such
                as an illustration, formula, or figure.</a:documentation>
            <oneOrMore>
                <choice>
                    <ref name="HEAD"/>
                    <element name="FIGDESC">
                        <a:documentation
                            xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">FigDesc
                            (description of figure) contains a brief prose description of the
                            appearance or content of a graphic figure, for use when documenting an
                            image without displaying it.</a:documentation>
                        <text/>
                        <ref name="BIBCITS"/>
                        <ref name="DATE"/>
                        <ref name="NAME"/>
                        <ref name="ORGNAME"/>
                        <ref name="PLACE"/>
                        <ref name="TITLE"/>
                        <ref name="XREF"/>
                    </element>
                    <ref name="GRAPHIC"/>
                    <ref name="P"/>
                </choice>
            </oneOrMore>
        </element>
    </define>
<define name="GRAPHIC">
        <element name="GRAPHIC">
            <a:documentation xmlns:a="http://relaxng.org/ns/compatibility/annotations/1.0">Graphic
                indicates the location of an inline graphic, illustration, or
                figure.</a:documentation>
            <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>
        </element>
    </define>

Currently allowed as follows:

FIGURE allowed in CHRONPROSE, DATAITEM, P, RESEARCHNOTE GRAPHIC allowed in CHRONPROSE, DATAITEM, FIGURE, P, RESEARCHNOTE

Proposal

Seems that the definition, structure and location of the Figure element should be brought as much as possible in line with its use in TEI.

I propose:

WDYT, @SusanBrown ?

SusanBrown commented 4 years ago

Agree.