Re: [XML-SIG] Re: Minidom empty script element bug

2005-03-22 Thread Uche Ogbuji
On Wed, 2005-03-16 at 08:53 +0100, Walter Dörwald wrote: > Martin v. Löwis sagte: > > Derek Basch wrote: > > >[...] > >> How do I get minidom to NOT render an empty script element? Should I > >> submit a bug report? > > > > That said, I think there is a simple solution: add an empty Text node to

Re: [XML-SIG] Re: Minidom empty script element bug

2005-03-16 Thread Derek Basch
Wow! XIST is very elegant. Perfectly designed for what it is supposed to do. "XIST is an extensible HTML/XML generator written in Python." I guess there isn't much point in "fixing" the pyXML XHTMLPrinter when something as cool as XIST exists (pun intended). Kid also seems really neat. I like th

Re: [XML-SIG] Re: Minidom empty script element bug

2005-03-16 Thread Ryan Tomayko
On Mar 15, 2005, at 6:14 PM, Martin v. Löwis wrote: Derek Basch wrote: XHTML 1.0 specs, Appendix C [EMAIL PROTECTED] C.3 Element Minimization and Empty Element Content Given an empty instance of an element whose content model is not EMPTY (for example, an empty title or paragraph) do not use the m

Re: [XML-SIG] Re: Minidom empty script element bug

2005-03-15 Thread Walter Dörwald
Martin v. Löwis sagte: > Derek Basch wrote: > >[...] >> How do I get minidom to NOT render an empty script element? Should I submit >> a bug report? > > That said, I think there is a simple solution: add an empty Text node to the > script element: > > script_node_0.appendChild(doc.createText(u"")