From: Steve B. <Ste...@zv...> - 2004-09-14 11:14:14
|
Firstly, which version of TclDOM are you using? On 14/09/2004, at 5:54 PM, Detlef Groth wrote: > Hello, I am using TclDom inside the tclh-webserver to build an > webapplication. I was trying to figure out how to build a > XHTML-Declaration like this: > > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > > or a even a HTML-DTD > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" > "http://www.w3.org/TR/html4/strict.dtd"> > > via this `dom::DOMImplementation createDocumentType' Command but did > not get success. If you are using v2.6 then it will definitely not work. If you are using v3.0 then please submit a bug report. documentType nodes should now be working correctly. > btw. a tDom like asHTML, asXML serialization would be great. dom::serialize $doc -method "xml" dom::serialize $doc -method "html" aren't good enough for you? > Here a trial with the `dom::DOMImplementation createDocumentType' > set doc [dom::DOMImplementation createDocumentType HTML PUBLIC > "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"] > dom::serialize $doc > but > invalid command name "Serialize:documentType" My first reaction is to make sure you are using v3.0. 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 |