Thomas Meinike: Doctype fehlt - Jdom XML/XSLT -> HTML

Beitrag lesen

Hallo,

<xsl:output method="html" doctype-system="http://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN" encoding="ISO-8859-1" indent="yes"/>

Damit klappt's immer noch nicht.

Dann ignoriert der verwendete XSLT-Prozessor vielleicht die Angaben zu xsl:output, was durchaus denkbar ist:

"If an XSLT processor outputs the result tree, it should do so as specified by the xsl:output element; however, it is not required to do so." [http://www.w3.org/TR/xslt#output]

Setze mal zusaetzlich dieses Attribut fuer xsl:output, um die XML-Deklaration im Ergebnis zu vermeiden:
omit-xml-declaration="yes"

BTW: Versteht der Prozessor bereits XSLT 2.0, wie im vorigen Posting mit version="2.0" angegeben?

MfG, Thomas

--
SVG - Learning By Coding
http://svglbc.datenverdrahten.de/