Next in thread → Next in month →

Re: [office] 1.1 schema. text:p recursion

From
David Faure <>
Date
2008-10-13T14:24:50+00:00
ID
Thread
Re: [office] 1.1 schema. text:p recursion
On Thursday 10 July 2008, Dave Pawson wrote:
>  <element name="text:p">
>         <ref name="paragraph-attrs"/>
>         <zeroOrMore>
>             <ref name="paragraph-content"/>
>         </zeroOrMore>
>     </element>
> 
> then
> 
> <define name="paragraph-content" combine="choice">
>     <element name="text:span">
>         <optional>
>             <attribute name="text:style-name">
>                 <ref name="styleNameRef"/>
>             </attribute>
>         </optional>
>         <optional>
>             <attribute name="text:class-names">
>                 <ref name="styleNameRefs"/>
>             </attribute>
>         </optional>
>         <zeroOrMore>
>             <ref name="paragraph-content"/>
> <!-- recursive -->
>         </zeroOrMore>
>     </element>
> </define>
> 
> Was it the intent that this recursion be included in the model?

Yes, I would say. From your subject I thought this was about text:p including text:p, not it's not,
it's about text:span including text:span. This is wanted, for example:
<text:span style="underline">this is underlined <text:span style="bold">underlined and bold</text:span> underlined only again</text:span>

Much like the html
<u>this is underlined <b>underlined and bold</b> underlined only again</u>

-- 
David Faure, , sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
Next in thread → Next in month →