Position of text:p inside draw:custom-shape - validation issue

Thorsten Zachmann t.zachmann at zagge.de
Fri May 25 06:23:40 BST 2012


On Thursday 24 May 2012 17:01:47 matus.uzak at gmail.com wrote:
> Hi,
> 
> I'm getting the following validation result.  Does the position of
> text:p inside draw:custom-shape really matters?  Seems there's a
> requirement it can not be the last child element.

Yes it matters for the schema to validate.

    <define name="draw-custom-shape">
        <element name="draw:custom-shape">
            <ref name="draw-custom-shape-attlist"/>
            <ref name="common-draw-position-attlist"/>
            <ref name="common-draw-size-attlist"/>
            <ref name="common-draw-shape-with-text-and-styles-attlist"/>
            <ref name="common-draw-caption-id-attlist"/>
            <optional>
                <ref name="svg-title"/>
            </optional>
            <optional>
                <ref name="svg-desc"/>
            </optional>
            <optional>
                <ref name="office-event-listeners"/>
            </optional>
            <zeroOrMore>
                <ref name="draw-glue-point"/>
            </zeroOrMore>
            <ref name="draw-text"/>
            <optional>
                <ref name="draw-enhanced-geometry"/>
            </optional>
        </element>
    </define>

The text needs to come before the draw:enhanced-geometry.

Thorsten



More information about the calligra-devel mailing list