[ 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 gisbertamm
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: Gisbert Amm (gisbertamm)
Date: 2004-03-29 11:11

Message:
Logged In: YES 
user_id=312922

My proposal is to change the XML export vocabulary from the
currently used Stylebook (the very limited simplified
DocBook dialect of the ASF) to real, full DocBook. 

This has several advantages, such as the possibility of
nested <section> elements instead of numbered
sections, the ability to include the resulting documents
easily into larger sets of documentation and the mere number
of possible output formats for DocBook instead of the HTML
only option for stylebook - to name only a few.

Since the DocBook community itself also runs a MoinMoin
Wiki, it would even be possible to get Wiki pages as an
output format from DocBook documents (that means, someone
possibly writes the necessary XSL stylesheets) and achieve a
real roundtrip by this means.

Jürgen knows of this proposal and it may already has been
written down somewhere. I just wanted to make sure everybody
has heard of it.

Regards,
Gisbert

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

Comment By: Joey Smith (tml)
Date: 2004-03-29 10:32

Message:
Logged In: YES 
user_id=501

1.2.1 did close the bug I found. As you're already aware
that you need a new XML parser, I see no reason to leave
keep bug. Thanks for a great wiki, either way. :)

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

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.