Hi Wang,
On Aug 15, 2008, at 7:05 AM, Wang Ning wrote:
Hi, Vincent
I test the xhtml parser. There is the focus:
1. base text format
underline. I think you can fix it.
see
http://code.google.com/p/wikimodel/issues/detail?id=31
Now we need to submit a patch or wait till it's fixed.
2. List
both number and bulleted.
The problem is in wikimodel xhtmlparser. It don't parser nested list
correctly. I think it hard to fix but I will try my best.
See
http://code.google.com/p/wikimodel/issues/detail?id=22&can=4
I need to update our version of wikimodel to latest from wikimodel
trunk since I think something related to lists has been fixed. I'll do
that later today.
Otherwise we need to submit a patch or wait.
3. Link
For input <html><body><a
href=\"http://xwiki.org\">xwiki</a></body></html>, the
xhtmlparser
generate
beginDocument()
beginParagraph([])
beginFormat([])
xwiki<http://xwiki.org> endFormat([])
endParagraph([])
endDocument()
I use XhtmlParser and EventDumpListener.
But the WikiModelXHTMLParser don't handle the event. Maybe
XDOMGeneratorListener have some problem to generate link block. Any
suggestion about this? Thanks.
Don't know. Would need to look.
4. table
Xhtmlparser can generate table event, but XDOMGeneratorListener don't
handle the event correctly. Is it not finished?
Yes tables in xwiki is done using a table macro which is not
implemented yet.
I'll ask Thomas if that's something he could work on in priority (he's
started the code macro but this is even more important, I had
forgotten about it).
5. img
Xhtmlparser just ignore the <img> tag. But it's OK since I use
imagetagfilter to handle the <img>
Then we need to report an issue against the XHTML parser.
6. param of text
like <p align="center">text</p>. how to handle the algin parameter?
I think we should use only "style" parameter and then talk with
wikimodel to support it somehow.
I think, if the problem above can be fixed,
xhtmlparser will work for
conversion from xhtml to xwiki syntax.
ok.
Thanks
-Vincent