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: conversion algorithm


Hi,

so for the records. My problems with the conversion algorithm is:
a) It is non-deterministic
b) It does not addess all attributes related to numbering (e.g. continue, restart, list-style-name, ...)
c) No sample; so I couldn't very my understanding  :-)

At the end of the day I am insisting on a normative algorithm, because I want to know whether ODF will contain two
different ways of doing numbering or one conceptual way of doing numbering with two different textual representations.
I want this conversion algorithm to be easily implementable. So e.g. not requirering global knowledge of the document,
which would e.g. a SAX-based transformation impossible.

I personally have not figured out a way to write a deterministic conversion algorithm. I guess the choicce of what list
style will be related to the list-id is always a non-deterministic choice.

E.g. 
<text:numbered-paragraph list-id="id1" style:name="L1">...<text:numbered-paragraph>
<text:numbered-paragraph list-id="id1" style:name="L2">...<text:numbered-paragraph>
<text:numbered-paragraph list-id="id1" style:name="L2">...<text:numbered-paragraph>
<text:numbered-paragraph list-id="id1" style:name="L1">...<text:numbered-paragraph>

can be represented as
<text:list style-name="L1">
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L1" list-override="L2" continue-numbering="true">
<text:list-item>...</text:list-item>
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L1" continue-numbering="true">
<text:list-item>...</text:list-item>
</text:list>

or 

<text:list style-name="L2"  list-override="L1">
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L2" continue-numbering="true">
<text:list-item>...</text:list-item>
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L2"  list-override="L1" continue-numbering="true">
<text:list-item>...</text:list-item>
</text:list>

or even

<text:list style-name="L3"  list-override="L1">
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L3"  list-override="L2" continue-numbering="true">
<text:list-item>...</text:list-item>
<text:list-item>...</text:list-item>
</text:list>
<text:list style-name="L3"  list-override="L1" continue-numbering="true">
<text:list-item>...</text:list-item>
</text:list>


Correct?


----

Another question is: How will this be translated into text:list:

<text:numbered-paragraph  list-id="id1"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>
<text:numbered-paragraph  list-id="id1"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>
<text:numbered-paragraph  list-id="id2"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>
<text:numbered-paragraph  list-id="id2"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>
<text:numbered-paragraph  list-id="id1"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>
<text:numbered-paragraph  list-id="id1"><text:p text:style-name="P1">...</text:p></text:numbered-paragraph>

with 

<style:style style:name="P1" style:family="paragraph" style:list-style-name="L1"/>.

I really see no good equivalent in the text:list representation.


~Florian



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