We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,620 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

How to use a Mobile Doctype in my XSLT file which outputs as XML

I have been trying for a long time to use a mobile Doctype in my XSLT file like so:

    <xsl:output method="xml" omit-xml-declaration="yes" 
   doctype-public="-//WAPFORUM//DTD XHTML Mobile 1.0//EN" doctype-system="http://www.wapforum.org/DTD/xhtml-mobile10.dtd"/>

but when I do this my sites layout goes all crazy which you can see here. I need to validate my mobile site at this site and it will not detect the Mobile doctype unless I output as XML, which as you can see messes up my page. Can anyone explain why this is happening, and maybe show me how to do this, or explain why it is happening?

Many thanks!!!

1
Contributor
0
Replies
11
Views
deucalion0
Junior Poster in Training
62 posts since Mar 2010
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.0549 seconds using 2.72MB