Asiri Rathnayake wrote: > On Fri, Feb 13, 2009 at 12:44 PM, Marius Dumitru Florea < > [email protected]> wrote: > >> Asiri Rathnayake wrote: >>> On Fri, Feb 13, 2009 at 12:02 PM, Marius Dumitru Florea < >>> [email protected]> wrote: >>> >>>> +1 to remove Moderate filtering level. >>>> +1 for having Strict as the default filtering level (I'm thinking that >>>> we should educate our users and make them understand that most of the >>>> time office content is not suited as it is for web) >>> >>> One thing worth to be mentioned is that with 'strict' filtering we >> currently >>> filter out image widths, heights, alignments and such (basically anything >>> that requires (%%) in wiki code) This means if a user imports a document >> You said: >> >> "Strict: Remove all the styles presented in the original document except >> for those that can be mapped directly into xwiki syntax" >> >> Isn't (%%) xwiki syntax? I think so. > > > Well in that case we should not strip any styles at all... I mean everything > possible in xhtml can be represented in xwiki code.
Not quite. XHTML is a richer syntax than XWiki. For one thing HTML forms can't be represented in XWiki syntax. > > The problem with (%%) is that when there are so many of them (when there are > so many styles / parameters set in the original office content) it's really > hard to read the generated wiki code (it's a mess). > > That's why we filter those stuff that require (%%) in wiki code, to keep it > clean... > > By "mapping directly into xwiki syntax" I meant those styles that do not > require additional parameters (%%). For an example, bold, italic etc. etc. > > 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? > > Thanks. > > - Asiri > > >> >>> containing a lot of scaled-down / precisely-aligned images (or other >> stuff) >>> the output would look pretty screwed without the styles. And this might >> not >>> give the user a good impression about the officeimporter application. >>> >>> Rather, if keep the 'no style filter' as the default, a default import >> would >>> at least be close to the original document. And the user will _have_ to >> set >>> the 'strict' filtering mode knowing what he is doing (thus the result is >>> acceptable). >>> >>> This is only my POV. >>> >>> 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 >> > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

