Problem with <head><title>
Posted: Mon Jul 21, 2003 7:49 pm
Hello,
Can you tell me why, when I write this in the beginning of my xsl, Oxygen successful in transform my xml but the xhtml page is empty :
If I write this, Oxygen can display the result but not the title :
Otherwise, if I write this, Oxygen can display the result and the title :
Thank you for your help.
Sandrine
Can you tell me why, when I write this in the beginning of my xsl, Oxygen successful in transform my xml but the xhtml page is empty :
Code: Select all
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html"/>
<xsl:template match="/root">
<html>
<head>
<title>MyTitle</title>
</head>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="book/author">
<h2>Author</h2>
...
Code: Select all
...
<xsl:template match="/root">
<html>
<title>MyTitle</title>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="book/author">
<h2>Author</h2>
...
Code: Select all
...
<xsl:template match="/root">
<html>
<h1>MyTitle</h1>
<body>
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="book/author">
<h2>Author</h2>
...
Sandrine