OASIS Open Document Format for Office Applications (OpenDocument) TC

 View Only

Re: [office] Proposal for lists/numbered paragraphs

  • 1.  Re: [office] Proposal for lists/numbered paragraphs

    Posted 03-19-2003 18:24
    Originally sent 17 March: got mailing list errors...
    
    > To be able to represent both kinds of numbered paragarphs, single one 
    > and paragarphs that form a list, I would like to propose to
    > 
    > - keep the concept of lists as it is, with the exception that the 
    > "text:ordered-list" and "text:unordered-list" elements are replaced by a 
    > single "text:list" element.
    > 
    > - add a new "text:numbered-paragraph" (or "text:num-p", etc.) element. 
    > This element has an "text:level" element like headings ("text:h") that 
    > specifies which level of a list styles should be the applied to the 
    > paragraph. The list style itself is specified as "style:list-style-name" 
    >   attribute attached to the paragraph's style element, as this is the 
    > case already. The "text:numbered-paragraph" element must not occur 
    > within lists, so that there are no conflicts between the level of a 
    > numbered paragraph and the level a paragraph gets because it is 
    > contained within a list.
    > 
    > - the "text:list" element should be used if numbered paragraphs that use 
    > the same list style follow one after another. "text:numbered-paragraph" 
    > should be used for single numbered paragraphs.
    
    I like this proposal.  I also think that it might be nice for us to post a 
    sample XSLT for converting from text:list form to text:numbered-paragraph 
    form, and vice versa.  Even though best practices will usually tend to 
    indicate one or the other, such examples will help imlemetors understand how 
    to deal with toolkits hat lean one way or another.
    
    
    -- 
    Uche Ogbuji                                    Fourthought, Inc.
    http://uche.ogbuji.net    http://4Suite.org    http://fourthought.com
    Universal Business Language (UBL) - http://www-106.ibm.com/developerworks/xml/l
    ibrary/x-think16.html
    EXSLT by example - http://www-106.ibm.com/developerworks/library/x-exslt.html
    The worry about program wizards - http://www.adtmag.com/article.asp?id=7238
    Use rdf:about and rdf:ID effectively in RDF/XML - http://www-106.ibm.com/develo
    perworks/xml/library/x-tiprdfai.html
    Keep context straight in XSLT - http://www-106.ibm.com/developerworks/xml/libra
    ry/x-tipcurrent.html
    Python Generators + DOM - http://www.xml.com/pub/a/2003/01/08/py-xml.html
    Using SAX for Proper XML Output - http://www.xml.com/pub/a/2003/03/12/py-xml.ht
    ml
    SAX filters for flexible processing - http://www-106.ibm.com/developerworks/xml
    /library/x-tipsaxflex.html