homepage Welcome to WebmasterWorld Guest from 54.204.215.209
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
XHTML Schema in place of XHTML Doctype?
JAB Creations




msg:3226427
 1:57 am on Jan 21, 2007 (gmt 0)

My understanding is I have an option (as far as the W3C is concerned) between using a DTD Doctype and an XHTML Schema to declare the language I am using (in my case XHTML 1.1). Regardless of browser issues what lines of code would I use to declare my document conforms to XHTML 1.1 using the XML schema method?

- John

 

choster




msg:3227951
 8:10 pm on Jan 22, 2007 (gmt 0)

Read through the first section of [w3.org...] . Since the DTD DOCTYPE is required to trigger standards mode in IE, the dual method (1.5) may be preferred.

encyclo




msg:3228022
 9:05 pm on Jan 22, 2007 (gmt 0)

You would have to serve the document as
application/xhtml+xml or application/xml anyway, which makes IE compatibility not really an issue - and as such you wouldn't need the doctype at all when serving as XML...
dragonthoughts




msg:3228066
 9:46 pm on Jan 22, 2007 (gmt 0)

The advantage that XML schemas have over DTD in the XML world is that they give finer control of validation of your fields.

For XHTML, the browsers won't be particularly concerned either way.

JAB Creations




msg:3240061
 10:05 pm on Feb 1, 2007 (gmt 0)

I'm just not finding the XHTML 1.1 schema declaration code anywhere online, could someone please post it for me?

- John

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved