On Nov 4, 2008, at 7:32 AM, Asiri Rathnayake wrote:
  Hi Sergiu, All,
 On Mon, Nov 3, 2008 at 6:56 PM, Sergiu Dumitriu <sergiu(a)xwiki.com>
 wrote:
  Asiri Rathnayake wrote:
  Hi Devs,
 When converting office documents into html (before they are
 transformed 
 into
  xwiki syntax) lots of style information gets
added into the html.
 For an
 example :
 <p class="western">Text in a <sup><span
 
style="color:;font-family=;font-size=2pt;">superscript</span></
 sup>format</p>
 And finally when this is transformed into xwiki syntax, the result
 will 
 look
  something like :
 (% class="western" %)
 Text in a ^^(% style="color:;font-family=;font-size=2pt;"
 %)superscript^^(%%) format
 The problem with this is, the resulting xwiki document will have
 lot's of
 (%%) elements which makes it difficult to make modifications in wiki 
 mode.
  And another argument is that content is more
important than style 
 (vincent).
 So, there are three options :
 1. Rip off style information. 
 What is expressible with wiki markup should be kept (headings, bold,
 superscript...). No font information, please. 
 Where can I find the legal style elements that can be rendered in
 xwiki 2.0
 ? 
They are all legal. Not sure what you mean. Whatever is legal in XHTML
is legal.
  I mean like text-align, color and so and so ?
 If we have such a comprehensive list, then we can simply rip off
 everything
 else! I mean, what is not possible to be rendered should not be
 kept ... 
As I said you can remove all style attributes.
  In this case, I don't see a requirement of
presenting a choice to
 the user,
 isn't it ? 
The user should be able to choose whether he wants to import styles or
not.
Thanks
-Vincent
 >
>> 2. Keep style information as it is.
>>
>> 3. Give the user an option to select between 1 and 2.
>>
>> I'm going with 3. :)
>
> +1 for 3.
>
>> WDYT ?
>>
>> Thanks.
>>
>> - Asiri