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 4:23AM messages near this date
[Tclxml-users] XHTML conform documenttype declaration | [Tclxml-users] Dom node problems with tclsoap 1.6.7, tcldom 2.6 (libxml2)
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
Steve.Ball@[...].com  +---------------------------+---------------------
Ph. +61 2 6242 4099   |   Mobile (0413) 594 462   | Fax +61 2 6242 4099



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM. 
Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php
_______________________________________________
Tclxml-users mailing list
Tclxml-users@[...].net
https://lists.sourceforge.net/lists/listinfo/tclxml-users
Thread:
Detlef Groth
Steve Ball

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