[ 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 11:32
Message generated for change (Comment added) made by tml
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=108482&aid=786855&group_id=8482

Category: None
Group: None
Status: Open
Resolution: None
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: Joey Smith (tml)
Date: 2004-01-21 10: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 07: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 06: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


-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
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.