Subject: RE: [xsl] default meta tag?? From: "Julian Reschke" <julian.reschke@xxxxxx> Date: Tue, 4 Sep 2001 15:09:00 +0200 |
Sorry, I thougt you were using MSXML. If it's Xalan, I'd try a) not to create your own meta tag at all and b) use xsl:output encoding="..." to specify the output encoding. Julian > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tanzila > Mohammad > Sent: Tuesday, September 04, 2001 2:56 PM > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] default meta tag?? > > > The FAQ is doing translation via a scripting language. For my project I am > using the Java XML API (Xalan) to do the translation. > > So the suggestion made in the FAQ is not going to be appropriate. > > Are there any other potential solutions which can be used in the Java XML > API? > > Thanks. > > Tanzila > > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Julian > Reschke > Sent: 04 September 2001 12:48 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: RE: [xsl] default meta tag?? > > > This is a FAQ. > > See <http://www.biglist.com/lists/xsl-list/archives/200108/msg00541.html>. > > > -----Original Message----- > > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Tanzila > > Mohammad > > Sent: Tuesday, September 04, 2001 1:33 PM > > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > > Subject: RE: [xsl] default meta tag?? > > > > > > The problem I have is as follows: > > My xml > > <?xml version="1.0" encoding="iso-8859-6"?> > > <language> > > <organisation>organisation</organisation> > > <encoding>iso-8859-6</encoding> > > </language> > > > > My xsl: > > > > <?xml version="1.0"?> > > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > > version='1.0'> > > <xsl:output method="html"/> > > > > <xsl:param name="xmlFile"></xsl:param> > > > > <xsl:template match="/"> > > <html> > > <head> > > <meta content="text/html;CHARSET={document($xmlFile)//encoding}" > > http-equiv="Content-Type"/> > > </head> > > <body> > > <font color="#CC0000"> > > <xsl:value-of select="document($xmlFile)//organisation"/> > > </font> <br/> > > </body> > > </html> > > </xsl:template> > > > > </xsl:stylesheet> > > > > My output returns: > > <html> > > <head> > > <META http-equiv="Content-Type" content="text/html; charset=UTF-8"> > > <meta http-equiv="Content-Type" content="text/html;CHARSET=iso-8859-6"> > > </head> > > <body> > > <font color="#CC0000">organisation</font> > > <br> > > </body> > > </html> > > > > 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. > > > > Thanks > > > > Tanzila > > > > > > > > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] default meta tag??, Tanzila Mohammad | Thread | Re: [xsl] default meta tag??, David Carlisle |
RE: [xsl] default meta tag??, Tanzila Mohammad | Date | Re: [xsl] default meta tag??, David Carlisle |
Month |