[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Control DOCTYPE for HTML output
Hi, > How do I control the doctype? > > My stylesheet kicks out the following doctype: > <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> > <html xmlns:ms="urn:schemas-microsoft-com:xslt"> > > However, I need to produce the following: > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> > <html xmlns:ms="urn:schemas-microsoft-com:xslt" > xmlns="http://www.w3.org/1999/xhtml"> Did you even try to search for "doctype" in <http://www.w3.org/TR/xslt>? See <http://www.w3.org/TR/xslt#output>: set the output method to "xml", create the elements into the result tree in XHTML namespace, and set the doctype-public and doctype-system to their corresponding values. Also, add "ms" prefix to the exclude-result-prefixes attribute of the xsl:stylesheet element <http://www.w3.org/TR/xslt#stylesheet-element>, the XHTML DTD doesn't allow that namespace declaration. Cheers, Jarno - Suicide Commando: Face Of Death (Waking Up The Dancefloor Mix By Implant) XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|