how do you apply header refresh on XSL

  • Thread starter Thread starter abdul bari
  • Start date Start date
A

abdul bari

Hi I was wondering how you apply header referesh to an XSl sheet. I
want the generated html page to refresh. The following code doesnt
work.

<head>
<title>sample</title>
<xsl:attribute name ="http-equiv">Refresh</xsl:attribute>
<xsl:attribute name ="content">5</xsl:attribute>
</head>

The generated html out still has http-equiv set to Content-Type.

Thanks
abz
 
<head>
<title>sample</title>
<meta>
<xsl:attribute name ="http-equiv">refresh</xsl:attribute>
<xsl:attribute name ="content">5</xsl:attribute>
</meta>
</head>

if you dont want the meta content-type added automatically, specify
<xsl:output method="xml" /> in your transform.

r.
 
Back
Top