ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> tclxml-users
tclxml-users
Re: [Tclxml-users] XHTML conform documenttype declaration
by Steve Ball other posts by this author
Sep 14 2004 1:42PM messages near this date
Re: re[4]: [Tclxml-users] Dom node problems with tclsoap 1.6.7, tcldom 2.6 (libxml2) | [Tclxml-users] XHTML conform documenttype declaration
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
Steve.Ball@[...].com  +---------------------------+---------------------
Ph. +61 2 6242 4099   |   Mobile (0413) 594 462   | Fax +61 2 6242 4099



-------------------------------------------------------
This SF.Net email is sponsored by: thawte's Crypto Challenge Vl
Crack the code and win a Sony DCRHC40 MiniDV Digital Handycam
Camcorder. More prizes in the weekly Lunch Hour Challenge.
Sign up NOW http://ad.doubleclick.net/clk;10740251;10262165;m
_______________________________________________
Tclxml-users mailing list
Tclxml-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tclxml-users

Privacy Policy | Email Opt-out | Feedback | Syndication
© 2004 ActiveState, a division of Sophos All rights reserved