This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Mozilla XML > April 2005 > xhtml multiple namespaces





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author xhtml multiple namespaces
Fxparlant

2005-04-04, 12:35 pm

Hello,

When I declare namespaces in the root "html" tag of my xhtml 1.0
transitional pages, I get error in w3c.validator (xmlns:dc or xmlns:tei
not an attribute...)

<pre>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:fxp="http://www.fxparlant.net"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:tei="http://www.tei-c.org/"
xml:lang="en" lang="en" dir="ltr">
</pre>

Which doctype should I choose to include these namespaces and be
validated by w3c ?

François
Martin Honnen

2005-04-04, 12:35 pm



Fxparlant wrote:


> When I declare namespaces in the root "html" tag of my xhtml 1.0
> transitional pages, I get error in w3c.validator (xmlns:dc or xmlns:tei
> not an attribute...)
>
> <pre>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml"
> xmlns:fxp="http://www.fxparlant.net"
> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
> xmlns:dc="http://purl.org/dc/elements/1.1/"
> xmlns:tei="http://www.tei-c.org/"
> xml:lang="en" lang="en" dir="ltr">
> </pre>
>
> Which doctype should I choose to include these namespaces and be
> validated by w3c ?


If you are combining elements from different namespaces you will
probably need to write your own DTD or schema, unless anyone has already
done that for all those namespaces you are using above.



--

Martin Honnen
http://JavaScript.FAQTs.com/
Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews