R
R
Hello everybody.
I've got a problem with creating a universal stylesheet eg:
<xsl:template match="/">
<xsl:call-template name="header"/>
<xsl:apply-templates select="/data/content"/>
<xsl:call-template name="footer"/>
</xsl:template>
inside header tamplate I've got sth like this:
<xsl:template name="header">
<html>
<head>
<title>
<xsl:value-of select="$Title"/>
</title>
</head>
<body>
</xsl:template>
as You can see the html and body tags are open...
and the footer template would print some additional info and would
close:
</body> and </html>
it is of course not well-formed document and won't compile
but for sure it can be omitted somehow, many of You probably use
similar constructions
thanks in advance for Your help
best regards R
I've got a problem with creating a universal stylesheet eg:
<xsl:template match="/">
<xsl:call-template name="header"/>
<xsl:apply-templates select="/data/content"/>
<xsl:call-template name="footer"/>
</xsl:template>
inside header tamplate I've got sth like this:
<xsl:template name="header">
<html>
<head>
<title>
<xsl:value-of select="$Title"/>
</title>
</head>
<body>
</xsl:template>
as You can see the html and body tags are open...
and the footer template would print some additional info and would
close:
</body> and </html>
it is of course not well-formed document and won't compile
but for sure it can be omitted somehow, many of You probably use
similar constructions
thanks in advance for Your help
best regards R