[xsl] question on support of stylesheet embedding

Subject: [xsl] question on support of stylesheet embedding
From: Hermann Stamm-Wilbrandt <STAMMW@xxxxxxxxxx>
Date: Tue, 14 Jul 2009 19:47:05 +0200
Hello,

the spec says that embedding a stylesheet into a XML document is possible:
http://www.w3.org/TR/xslt#section-Embedding-Stylesheets

After some searching I was able to get the cdcatalog sample below working:
(http://www.stamm-wilbrandt.de/en/xsl-list/cdcatalog.xml if you want to
click).

But it is working for Firefox 2/3 and Opera 9.64, NOT for MS IE6.
I found neither negative nor positive statements on IE 6/7/8 support
of stylesheet embedding while searching the web.

Does anybody now the answer whether any of the Microsoft browsers supports
stylesheet embedding?


<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="#style1"?>
<!DOCTYPE catalog [
<!ATTLIST xsl:stylesheet id ID #REQUIRED>
]>
<catalog>
<xsl:stylesheet id="style1" version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>

<xsl:template match="/">.
  <html>
  <body>
  <h2>My CD Collection</h2>
  <table border="1">
    <tr bgcolor="#9acd32">>
      <th>Title</th>
      <th>Artist</th>
    </tr>>
    <xsl:for-each select="//catalog/cd">
    <tr>:
      <td><xsl:value-of select="title"/></td>
      <td><xsl:value-of select="artist"/></td>
    </tr>>
    </xsl:for-each>
  </table>
  </body>>
  </html>>
</xsl:template>
<xsl:template match="xsl:stylesheet">
  <!-- ignore -->
</xsl:template>
</xsl:stylesheet>
  <cd>
    <title>Empire Burlesque</title>
    <artist>Bob Dylan</artist>
    <country>USA</country>
    <company>Columbia</company>
    <price>10.90</price>
    <year>1985</year>
  </cd>
  <cd>>
    <title>The white album</title>>
    <artist>Beatles</artist>
    <country>UK</country>
    <company>apple</company>
    <price>???</price>
    <year>196?</year>>
  </cd>
</catalog>



Mit besten Gr|_en / Best wishes,

Hermann Stamm-Wilbrandt
Developer, XML Compiler
WebSphere DataPower SOA Appliances
----------------------------------------------------------------------
IBM Deutschland Research & Development GmbH
Vorsitzender des Aufsichtsrats: Martin Jetter
Geschdftsf|hrung: Erich Baier
Sitz der Gesellschaft: Bvblingen
Registergericht: Amtsgericht Stuttgart, HRB 243294

Current Thread