Skip to content

Sort out FIGURE and GRAPHIC elements #174

@ilovan

Description

@ilovan

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:

  • allow FIGURE in DIV 0, DIV 1, DIV 2, CHRONSTRUCT, DATAITEM;
  • allow GRAPHIC only in FIGURE
  • add FIGDESC within FIGURE.

WDYT, @SusanBrown ?

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions