xml:
Kod
<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="transformations.xsl"?>
<rot>
<b></b>
<a>test</a>
</rot>
<?xml-stylesheet type="text/xsl" href="transformations.xsl"?>
<rot>
<b></b>
<a>test</a>
</rot>
xslt:
Kod
<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/> <!--typ dokumenty -->
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>temat</title>
</head>
<body>
test
: <xsl:value-of select="rot/a"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" doctype-public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"/> <!--typ dokumenty -->
<xsl:template match="/">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>temat</title>
</head>
<body>
test
: <xsl:value-of select="rot/a"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Za każdym razem kiedy wywołuje plik xml w przeglądarce wyświetla mi się coś takiego:
Kod
test
Szukam błędu już bardzo długo, ale nie mogę go znaleźć. Czy ktoś wie co robię źle?
Już znalazłem błąd w nazwie jednego pliku był enter.

