From: Steve B. <Ste...@zv...> - 2004-09-14 20:31:06
|
On 15/09/2004, at 12:22 AM, Detlef Groth wrote: > Steve thanks for the fast response, That's OK... I do my best ;-) >> Firstly, which version of TclDOM are you using? > > Version 3.0, the tcl-one. OK - in that case submit a bug report. >>> btw. a tDom like asHTML, asXML serialization would be great. >> >> dom::serialize $doc -method "xml" >> dom::serialize $doc -method "html" > (tclkit) 60 % package require dom > 3.0 > (tclkit) 61 % set doc [dom::DOMImplementation create] > ::dom::tcl::document5::Document > (tclkit) 62 % set top [dom::document createElement $doc html] > ::dom::tcl::document5::node2 > (tclkit) 63 % set head [dom::document createElement $top head] > ::dom::tcl::document5::node6 > (tclkit) 64 % set title [dom::document createElement $head title] > ::dom::tcl::document5::node10 > (tclkit) 65 % set titleText [dom::document createTextNode $title > "MPIMG Berlin - Mouse Database"] > ::dom::tcl::document5::node14 > (tclkit) 66 % set body [dom::document createElement $top body] > ::dom::tcl::document5::node18 > (tclkit) 67 % set div [dom::document createElement $body div] > ::dom::tcl::document5::node22 > (tclkit) 68 % dom::serialize $doc -method "html" > <?xml version='1.0'?> > <!DOCTYPE html> > <html><head><title>MPIMG Berlin - Mouse > Database</title></head><body><div/></body></html> > (tclkit) 69 % dom::serialize $doc -method "xml" > <?xml version='1.0'?> > <!DOCTYPE html> > <html><head><title>MPIMG Berlin - Mouse > Database</title></head><body><div/></body></html> > (tclkit) 70 % dom::serialize $doc > <?xml version='1.0'?> > <!DOCTYPE html> > <html><head><title>MPIMG Berlin - Mouse > Database</title></head><body><div/></body></html> > > I can't see a difference between those three versions. OK, I see what you mean. Again, you'll have to submit a bug report against the TclDOM/Tcl package to improve the support for the -method option. > May be if somebody could provide a minimal example writing an > XHTML-conform document with TclDom this would be enough. Sounds fair; that's something that should be on the website, or on the Tcl Wiki. Once again, if you submit this as a feature request on SF so I don't forget, or someone else can be assigned the task, that would be very helpful. Cheers, Steve Ball --- Steve Ball | XSLT Standard Library | Training & Seminars Zveno Pty Ltd | Web Tcl Complete | XML XSL Schemas http://www.zveno.com/ | TclXML TclDOM | Tcl, Web Development Ste...@zv... +---------------------------+--------------------- Ph. +61 2 6242 4099 | Mobile (0413) 594 462 | Fax +61 2 6242 4099 |