Hallo,
ich habe es ausprobiert aber es klappt leider nicht. Ich bekomme immer noch den selben Fehlermeldung. Habe den Code meines XSL-Dokuments unten eingefügt. Vieleicht habe ich etwas übersehen.
Ja:
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html" charset="iso-8859-1" />
<title>IbS Bochum </title>
<link rel="stylesheet" type="text/css" href="../../../layout/blau.css"/>
</head>
<body>
<div id="col2news">
<xsl:for-each select="document('Text.xml')//Text">
<xsl:apply-templates mode="titel" />
<xsl:apply-templates mode="text" />
<xsl:apply-templates mode="date" />
</xsl:for-each>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="Titel" mode="titel">
<h3><xsl:apply-templates mode="titel" /></h3>
</xsl:template>
<xsl:template match="Absatz" mode="text">
<br/><br/>
</xsl:template>
<xsl:template match="Text" mode="text">
<p><xsl:apply-templates mode="text" /></p>
</xsl:template>
<xsl:template match="Datum" mode="date">
<p><xsl:apply-templates mode="date" /></p>
</xsl:template>
</xsl:stylesheet>
Grüße
Thomas