RE: [xsl] default meta tag??

Subject: RE: [xsl] default meta tag??
From: "Tanzila Mohammad" <tmohammad@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 4 Sep 2001 12:33:09 +0100
The problem I have is as follows:
My xml
<?xml version="1.0" encoding="iso-8859-6"?>

My xsl:

<?xml version="1.0"?>
<xsl:stylesheet  xmlns:xsl="";
<xsl:output method="html"/>

<xsl:param name="xmlFile"></xsl:param>

   <xsl:template match="/">
   <meta content="text/html;CHARSET={document($xmlFile)//encoding}"
      <font color="#CC0000">
              <xsl:value-of select="document($xmlFile)//organisation"/>
         </font>   <br/>


My output returns:
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-6">
<font color="#CC0000">organisation</font>

The problem is in the output - the duplicate meta tag, is there a default
setting that I am missing? How do I remove the following?

<META http-equiv="Content-Type" content="text/html; charset=UTF-8">

When I use encoding for Arabic or Chinese the characters are not being
recognised due to the presence of the extra meta tag.



 XSL-List info and archive:

Current Thread