Thomas J.S.: Problem mit title tag

Beitrag lesen

Hallo,

Wie bekomme ich den Text von dem titel Tag in die xsl in das Element title?

Mal von deinem Tippfehler abgesehen ist es vielleicht besser so:

<xsl:template match="/">
<html>
 <head>

<xsl:apply-templates select="title" />

</head>
 <body>

</body>
</html>
</xsl:template>

Da du sonst alles, also auch alle andere templates auch im <head> aufrufst.

Alternative:
<head>
<xsl:value-of select="/dokumentElement/ElementenPfadBisHinZu/title" />
</head>

Grüße
Thomas