homepage Welcome to WebmasterWorld Guest from 54.166.33.25
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
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

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3226425 posted 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

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 3226425 posted 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

WebmasterWorld Senior Member encyclo us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3226425 posted 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

5+ Year Member



 
Msg#: 3226425 posted 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

WebmasterWorld Senior Member jab_creations us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3226425 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved