Hi, the ordered sequence complicates things in filters a lot. There is a predefined sequence of containers in MS-ODRAW and OOXML but it's almost a wonder if a file follows it 100%. Another example where we don't follow the schema I found recently is <table:shapes>, which should come before columns and cells. We use a sequential approach to parse the content and write to ODF, so it means a lot of additional work to follow the ODF relax-ng schema. :(
Do we want to make it a priority or are we Ok with the current state? However, let's make a proposal to the TC to make <ref name="draw-text"/> optional. It's simply in the middle of optional child elements in ODF. And it's optional in both OOXML and MS-ODRAW. br, -matus On Fri, May 25, 2012 at 7:23 AM, Thorsten Zachmann <t.zachm...@zagge.de> wrote: > On Thursday 24 May 2012 17:01:47 matus.u...@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 > _______________________________________________ > calligra-devel mailing list > calligra-devel@kde.org > https://mail.kde.org/mailman/listinfo/calligra-devel _______________________________________________ calligra-devel mailing list calligra-devel@kde.org https://mail.kde.org/mailman/listinfo/calligra-devel