Re: xml form editor <-> kupu
Martijn Faassen <[email protected]>
| Newsgroups | gmane.comp.web.zope.silva.devel |
|---|---|
| Message-ID | <[email protected]> |
Marc Petitmermet wrote: > dear developers > > (silva-1.1.1-all, completely new silva root) > > i noticed an inconsistency in the generated xml by form editor and kupu: > > form editor > ----------- > <?xml version="1.0" ?> > <doc> > <p type="normal">this is a test. > </p> > </doc> > > kupu > ---- > <?xml version="1.0" ?> > <doc xmlns="http://xml.infrae.com/document/0.9.3"> > <p type="normal">this is a test. > </p> > </doc> > > as soon as you work with/ change to kupu a doc attribute gets added; it > looks like some kind of version note. but version of what? the silva > product? the silva xml schema? > as long as you work with the form editor the doc attribute never gets > added. > which of the generated xml is the correct one? Hm, what gets added is actually an XML namespace declaration. I'm surprised this actually works -- the document code traditionally completely ignores namespaces, and this isn't really a good namespace anyway. We don't want to mark versions in namespaces. Anyway, I suspect that in the exported XML this namespace is completely ignored, which is good. I'll add an issue that this namespace addition needs to be removed, though. Regards, Martijn