Hi Asiri,

Asiri Rathnayake wrote:
> Hi,
> 
> 
>>> So 'strict filtering' --> no (%%)
>> Then I don't see it's purpose. It's really rare to have an XHTML with
>> attribute-less tags. Title, alt, class, id are just a few of the common
>> XHTML attributes that go inside (%%) in XWiki syntax.
>>
>> Basically you're saying that passing a hand-written XHTML page to the
>> office importer/cleaner removes all my attributes beside src on images
>> and href on link. Why would I need such a filter?
>>
> 
> The purpose of officeimporter is not to process xhtml documents but office
> documents. Yes, _currently_ 'strict filter' only allows those few attributes
> that are mandatory for preserving the _content_ of the original office
> document, not it's presentation.

Links can have name, rel and target. Images require alt. Tables can have 
summary. These are not really presentational attributes.

> 
> This is exactly why I included a 'moderate' filter... which keeps the wiki
> output not being out-of-shape with the original document.

Then I'm -0 for removing the Moderate filter. Let's see what others think.

Thanks,
Marius.

> 
> Thanks.
> 
> - Asiri
> _______________________________________________
> devs mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/devs
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to