Я работаю над простым образовательным проектом по изучению языка XSLT, но когда я пытаюсь применить таблицу стилей к XML-файлу, преобразование возвращает мне пустую HTML-страницу. Что, по вашему мнению, является ошибкой в коде, ссылка на который приведена позже? (используя XMLSpear в качестве редактора)
вот код xml
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TEI SYSTEM "teilite.dtd">
<?xml-stylesheet type="text/xsl" href="stile.xsl"?>
<TEI xmlns="http://www.tei-c.org/ns/1.0">
<teiHeader>
<fileDesc>
<titleStmt>
<title>Ettore Fieramosca o la disfida di Barletta : racconto</title>
<respStmt>
<resp>Conversione TEI P5 a cura di</resp>
<name>V. Caproni</name>
</respStmt>
</titleStmt>
<publicationStmt>
<publisher>Exercise Press</publisher>
<date>20-10-2014</date>
</publicationStmt>
<sourceDesc>
<bibl>
<title>title</title>
<author>author</author>
<publisher>publisher</publisher>
<date>1856</date>
<from>title of the book</from>
<licence>link to the licence</licence>
</bibl>
</sourceDesc>
</fileDesc>
<encodingDesc>
<styleDefDecl scheme="css"/>
<tagsDecl>
<rendition xml:id="blue">color: blue;</rendition>
<rendition xml:id="red">color: red;</rendition>
</tagsDecl>
</encodingDesc>
</teiHeader>
<text>
<front>
<p>author name</p>
<p>title</p>
</front>
<epigraph>
<p>epigraph n1</p>
</epigraph>
<epigraph>
epigraph n2
</epigraph>
<body>
<div type="Capitolo" xml:id="cap1">
<h2>Capitolo I</h2>
<p rendition="#blue">
sometext
</p>
</div>
</body>
</text>
</TEI>
вот код xls
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"
xmlns:tei="http://www.tei-c.org/ns/1.0"
xmlns="http://www.w3.org/1999/xhtml">
<xsl:output method="html" indent="yes" omit-xml-declaration="yes"/>
<xsl:template match="tei:TEI">
<html>
<head>
<title>Ettore Fieramosca o La Disfida di Barletta</title>
<link href="stile.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="tei:teiHeader">
<br/>
<h1>Informazioni sul documento</h1>
<br/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="tei:front">
<br/>
<h1>Frontespizio e prefazione</h1> <br/>
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="tei:front">
<br/>
<h1>Frontespizio e prefazione</h1> <br/>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
ИЗМЕНИТЬ ничего не отображается ни во встроенном браузере, ни в Firefox, ни в Chrome
РЕДАКТИРОВАТЬ 2 Согласно встроенному валидатору xsl и xml оба документа хорошо сформированы