[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

[xsl] attributes for XHTML 1.1?


Subject: [xsl] <xsl:output> attributes for XHTML 1.1?
From: "Gustaf Liljegren" <gustaf.liljegren@xxxxxx>
Date: Wed, 26 Sep 2001 14:04:45 +0200

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



Current Thread
Keywords