[ moin-Bugs-786855 ] xml feature doesn't work

"SourceForge.net" <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Message-ID <[email protected]>
Bugs item #786855, was opened at 2003-08-11 19:32
Message generated for change (Comment added) made by thomaswaldmann
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=786855&group_id=8482

Category: None
Group: None
>Status: Closed
>Resolution: Later
Priority: 5
Submitted By: Joey Smith (tml)
Assigned to: Nobody/Anonymous (nobody)
Summary: xml feature doesn't work

Initial Comment:
Visit http://parrakeet.joeysmith.com and click on the 
XML link. The XML which is generated is invalid.

<p><s2>stuff here</p></s2>

Those tags must not interleave for valid XML.

----------------------------------------------------------------------

>Comment By: Thomas Waldmann (thomaswaldmann)
Date: 2004-03-27 15:32

Message:
Logged In: YES 
user_id=100649

This issue has maybe improved in 1.2.1 (but there is another
bug in there with footnotes). So maybe check 1.2.2 as soon
as it is released.

A complete fix for that problem is not to be expected before
we switch to a different parser. Same thing as for
generating completely valid xhtml.

Please re-submit if there are still problems after that
"version with a new parser".


----------------------------------------------------------------------

Comment By: Joey Smith (tml)
Date: 2004-01-21 18:49

Message:
Logged In: YES 
user_id=501

Having someone else report this as a problem lead me to
investigate a bit deeper (BTW, twerschlein: sf.net didn't
escape your HTML, so it's difficult to see your report).

I can see now why this bug is still open.

Given the stream:
<p><h1>foo</h1></p>

moinmoin is trying to generate the following XML stream:
<s1><p>foo</p></s1>

The problem is that by the time the XML formatter knows that
it needs to print <s1>, <p> has already been
printed. So it seems that, in order to fix this, one of
three things will have to be done:

1) All of the XML Formatter functions will need to share a
common "stack", and <s1> cannot be printed until
<s2> is known/encountered.

2) Use the DOM rather than printing the XML as a stream

3) Find someway to rewind the stream when <s##> is
encountered.

----------------------------------------------------------------------

Comment By: Thomas Werschlein (twerschlein)
Date: 2004-01-21 15:03

Message:
Logged In: YES 
user_id=679755

[Sorry for not escaping the tags the first time]

I notice the same problem, but within this context:
<s1><p><anchor/><s2></p><p>stuff
here</p></s2></s1>

----------------------------------------------------------------------

Comment By: Thomas Werschlein (twerschlein)
Date: 2004-01-21 14:59

Message:
Logged In: YES 
user_id=679755

I notice the same problem, but within this context:
<s1><p><anchor/><s2></p><p>stuff here</p></s2></s1>

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=786855&group_id=8482


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.