Raucherkrebs: Problem mit XSLT / SAXON

Beitrag lesen

So besser?

<!-- Externe DTD -->
<!ELEMENT agb (topic+)>
<!ELEMENT section (subtopic? | p+)>
<!ELEMENT subtopic (p+)>
<!ELEMENT p (#PCDATA)>

<!ATTLIST agb
    date          NMTOKEN          #REQUIRED
    updated       NMTOKEN          #REQUIRED

<!ATTLIST section
    name          CDATA            #REQUIRED
    number        CDATA            #REQUIRED

<!-- XSL Template -->

<?xml version="1.0" encoding="utf-8" ?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
    <html>
        <head>
            <title>Testconversion</title>
        </head>
        <body style="color: green;">
            <xsl:apply-templates />
        </body>
    </html>
</xsl:template>

<xsl:template match="section">
    <xsl:apply-templates />
</xsl:template>

<xsl:template match="p">
    <div style="border: 1px solid #000;"><xsl:value-of select="." /></div>
</xsl:template>

</xsl:stylesheet>