[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] <xsl:output> attributes for XHTML 1.1?
I'm making an XSLT stylesheet to process XML -> XHTML 1.1 conversions. Here's how I imagine an <xsl:output> element for this purpose: <xsl:output method="xml" version="1.0" cdata-section-elements="pre script style" indent="yes" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN" /> XSLT 1.0 doesn't seem to specify any defaults for some of these, so I have included them for safety. Some questions: 1. XHTML is formally "xml" in this case, not "html", right? 2. Is it okay to put the XHTML 1.1 DTD files on your own web server and refer to that address instead of the address in the specification? That would be for example: doctype-system="http://www.myserver.com/dtd/xhtml11/xhtml11.dtd" doctype-public="-//W3C//DTD XHTML 1.1//EN" W3C must get a *lot* of traffic if everyone starts to use the original system id, assuming that web browsers really use DTDs. :-) 3. Assuming that people use XML aware browsers, should <pre>, <script> and <style> be considered as CDATA elements? More examples from XHTML 1.1? Regards, Gustaf Liljegren 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
|