Habe es immer noch nicht hinbekommen dass der IE meinen mht-Quelltext erkennt. Bin leider ein kleiner Angänger. Ich weiß nicht wo der Fehler ist. Liegt das evtl. am Transformator? Ich benutze XSLTproc
Ich habe es so angegeben
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:ptb="http://www.test.com/ns/1.0">
<xsl:output method="html"/>
<xsl:template match="/">
Mime-Version: 1.0
Content-Type: multipart/related;
type="text/html"
boundary="----=_NextPart"
------=_NextPart
Content-Transfer-Encoding: quoted-printable;
Content-Type: text/html; charset="utf-8"
<html><meta http-equiv="Content-Type" content="text/html" charset="utf-8"/>
<body>
<h1>Metadata Report</h1>
<xsl:apply-templates select="*"/>
</body>
</html>
</xsl:template>
<xsl:template match="ptb:grouping_value">
<h2><xsl:value-of select="."/></h2>
</xsl:template>
<xsl:template match="//ptb:document/ptb:images/ptb:image">
<h2>Image</h2>
<table>
<xsl:apply-templates mode="imagetable" select="//ptb:document/ptb:pages/ptb:page/ptb:images/ptb:image[@image_id=current()/@id]"/>
<xsl:apply-templates mode="imagetable" select="ptb:metadata/ptb:metadatavalue"/>
</table>
</xsl:template>
<xsl:template mode="imagetable" match="//ptb:document/ptb:pages/ptb:page/ptb:images/ptb:image">
<tr>
<td>
<img src="test.png"></img>
</td>
<td>Page <xsl:value-of select="../../ptb:metadata/ptb:metadatavalue[@property_id='ptb_page:nr']"/></td>
</tr>
------=_NextPart
Content-Type: image/png;
charset="utf-8"
Content-Transfer-Encoding: base64
Content-Location: test.png
<xsl:value-of select="../../ptb:metadata/ptb:metadatavalue[@property_id='ptb_page:thumbnail']"/>
</xsl:template>
<xsl:template mode="imagetable" match="//ptb:document/ptb:images/ptb:image/ptb:metadata/ptb:metadatavalue">
<tr>
<td><xsl:value-of select="@property_id"/></td>
<td><xsl:value-of select="."/></td>
</tr>
</xsl:template>
<xsl:template match="*">
<xsl:apply-templates select="*"/>
</xsl:template>
</xsl:stylesheet>