[<<] [<] Page 1 of 1 [>] [>>] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
XHTML Doctype Declaration for HOWTOs
From: Saqib Ali ####@####.#### Date: 5 May 2004 02:18:06 -0000 Message-Id: <Pine.GSO.4.55.0405041906240.25723@sjgcs1.stsj.seagate.com> Hello All, I modified the transformer @ http://validate.sf.net to include the XHTML Doctype declaration to the HTML output. The HTML output can now be validated using W3's HTML validator. However I noticed that Norman Walsh's DocBook XSLT includes the following tag in the transformed document. <meta xmlns="http://www.w3.org/1999/xhtml" ...... I think the XML Namespace can only be declared in <html/> tag for e.g.: <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> is the correct way to declare the namespace. <meta xmlns="http://www.w3.org/1999/xhtml" ...... is what Norman Walsh's XSLT produce, which I think is incorrect. I might be wrong. Any ideas? Any thoughts? Thanks. Saqib Ali ------------- http://validate.sf.net <---- (X)HTML / DocBook XML Validator and Transformer | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: XHTML Doctype Declaration for HOWTOs
From: Saqib Ali ####@####.#### Date: 5 May 2004 02:22:33 -0000 Message-Id: <Pine.GSO.4.55.0405041918030.25814@sjgcs1.stsj.seagate.com> Sorry I forgot to include a sample: http://www.xml-dev.com:8080/tldp/http://www.xtrinsic.com/geek/articles/acpi.xml (watch for line wraps) more samples here: http://www.xml-dev.com/blog/#88 On Tue, 4 May 2004, Saqib Ali wrote: > Hello All, > > I modified the transformer @ http://validate.sf.net to > include the XHTML Doctype declaration to the HTML output. The > HTML output can now be validated using W3's HTML validator. > > However I noticed that Norman Walsh's DocBook XSLT includes the following > tag in the transformed document. > <meta xmlns="http://www.w3.org/1999/xhtml" ...... > > I think the XML Namespace can only be declared in <html/> tag for e.g.: > <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> > is the correct way to declare the namespace. > > <meta xmlns="http://www.w3.org/1999/xhtml" ...... is what Norman Walsh's > XSLT produce, which I think is incorrect. I might be wrong. > > Any ideas? Any thoughts? > > Thanks. > Saqib Ali > ------------- > http://validate.sf.net <---- (X)HTML / DocBook XML Validator and Transformer > > ______________________ > http://lists.tldp.org/ > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: XHTML Doctype Declaration for HOWTOs
From: Emma Jane Hogbin ####@####.#### Date: 5 May 2004 02:34:20 -0000 Message-Id: <20040505023116.GC7215@smeagol> On Tue, May 04, 2004 at 07:17:10PM -0700, Saqib Ali wrote: > However I noticed that Norman Walsh's DocBook XSLT includes the following > tag in the transformed document. > <meta xmlns="http://www.w3.org/1999/xhtml" ...... According to the XHTML 1.0 Transitional DTD the xmlns attribute can only occur in the html start tag (which means that you're right--it cannot occur in a meta start tag). <!ELEMENT html (head, body)> <!ATTLIST html %i18n; id ID #IMPLIED xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml' > I'd recommend submitting a bug report on the OASIS docbook list. emma -- Emma Jane Hogbin [[ 416 417 2868 ][ www.xtrinsic.com ]] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Subject:
Re: XHTML Doctype Declaration for HOWTOs
From: Saqib Ali ####@####.#### Date: 6 May 2004 17:42:13 -0000 Message-Id: <Pine.GSO.4.55.0405061037520.10915@sjgcs1.stsj.seagate.com> Just an FYI: Hello All, Derek Harmon over USENET, pointed me to the following URL http://www.w3.org/TR/2000/REC-xhtml1-20000126/#well-formed According to which "The XHTML namespace may be used with other XML namespaces as per [XMLNAMES], although such documents are not strictly conforming XHTML 1.0 documents as defined in the Specs or the DTD. Here is the text of the reply from Derek: http://groups.google.com/groups?selm=c7cdef%242bav1%241%40ID-185805.news.uni-berlin.de&oe=UTF-8&output=gplain Saqib Ali ------------- http://validate.sf.net <---- (X)HTML / DocBook XML Validator and Transformer On Tue, 4 May 2004, Emma Jane Hogbin wrote: > On Tue, May 04, 2004 at 07:17:10PM -0700, Saqib Ali wrote: > > However I noticed that Norman Walsh's DocBook XSLT includes the following > > tag in the transformed document. > > <meta xmlns="http://www.w3.org/1999/xhtml" ...... > > According to the XHTML 1.0 Transitional DTD the xmlns attribute can only > occur in the html start tag (which means that you're right--it cannot > occur in a meta start tag). > > <!ELEMENT html (head, body)> > <!ATTLIST html > %i18n; > id ID #IMPLIED > xmlns %URI; #FIXED 'http://www.w3.org/1999/xhtml' > > > > I'd recommend submitting a bug report on the OASIS docbook list. > > emma > > -- > Emma Jane Hogbin > [[ 416 417 2868 ][ www.xtrinsic.com ]] > > ______________________ > http://lists.tldp.org/ > > | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
[<<] [<] Page 1 of 1 [>] [>>] |