OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

office message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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, faure@kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]