Holge r : Ausgabe in html Listen

Beitrag lesen

Als Idee

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>
    <xsl:template match="/">
        <html>
            <head/>
            <body>
                <xsl:apply-templates select="L"/>
            </body>
        </html>
    </xsl:template>
    <xsl:template match="L">
<!-- hier könnten abfragen stehet ob ul oder ol benutzt werden soll -->
        <ul>
            <xsl:apply-templates select="LI"/>
        </ul>
    </xsl:template>
    <xsl:template match="LI">
        <li>
            <xsl:apply-templates select="Lbody"/>
        </li>
    </xsl:template>
    <xsl:template match="Lbody">
        <p>
            xsl:apply-templates/
        </p>
    </xsl:template>
</xsl:stylesheet>