This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: Xalan-J2 outputing extra META tag in HTML
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE: Xalan-J2 outputing extra META tag in HTML
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 6 Mar 2001 20:04:54 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
I also had complaints about the META tag added to HTML output upsetting some
browsers, so there is an option in Saxon to suppress it.
I handn't noticed that the spec is silent on the default encoding for HTML
output, but yes, it seems it doesn't specify what the default should be.
(For XML it specifies UTF-8 or UTF-16).
Mike Kay
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of
> Scott_Boag@lotus.com
> Sent: 06 March 2001 16:56
> To: xalan-dev@xml.apache.org
> Cc: xsl-list@lists.mulberrytech.com
> Subject: [xsl] RE: Xalan-J2 outputing extra META tag in HTML
>
>
>
> > In my personal opinion the only bug is in the spec. It does
> not say which
> > encoding the processor should output when there is no
> encoding defined in
> > the <xsl:output> node.
>
> Hmm... you are right that it doesn't actually say to use a
> default encoding
> of UTF-8 for method="html", that I can find. (It could still
> be buried
> somewhere in there).
>
> I think all other processors are defaulting to UTF-8, so I
> suspect that is
> what we should stick to.
>
> I'm cc'ing to the xsl-list. Do any of you folks have an
> opinion on this?
>
> -scott
>
>
>
>
>
>
> "Christian
>
> Aberger" To:
> <xalan-dev@xml.apache.org>
> <Christian@Ab cc: (bcc: Scott
> Boag/CAM/Lotus)
> erger.at> Subject: RE:
> Xalan-J2 outputing extra META tag in HTML
>
>
> 03/06/2001
>
> 11:04 AM
>
> Please
>
> respond to
>
> xalan-dev
>
>
>
>
>
>
>
>
>
> Hi Dimitry,
>
> Bingo. You are right. I do not use the Java-, but the Xalan-C
> version, but
> I
> suppose the solution is the same. I used now
> <xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
> as output method, and could not see any problem on any of the
> browsers that
> before made the problems with UTF-8. IE5 seemed to work OK with both
> ISO-8859-1 and UTF-8. With "ISO-8859-1" all tested browsers
> now seem to do
> their job properly with Xalan-C 1.1 output.
>
> So I suppose it is not a Xalan problem, but an xsl-template+browser
> problem.
> I think there might not be a need to make the <META...> tag output
> optional,
> because the spec (http://www.w3.org/TR/xslt) explicitly
> states that the
> META
> element should be added by the processor after the <head>
> element (16.2).
>
> In my personal opinion the only bug is in the spec. It does
> not say which
> encoding the processor should output when there is no
> encoding defined in
> the <xsl:output> node. There are the options:
> - do not output a meta element at all (not really what the spec says
> ..."should add a META...")
> - default to an encoding that also older M$-browsers understand ?
> - default to the encoding used in the stylesheet itself
> - default to "UTF-8"
>
> So what should the implementation choose ?
>
> wfR ChrisA
>
> -----Original Message-----
> From: Voytenko, Dimitry [mailto:DVoytenko@SECTORBASE.COM]
> Sent: Montag, 05. März 2001 18:46
> To: 'xalan-dev@xml.apache.org'
> Subject: RE: Xalan-J2 outputing extra META tag in HTML
>
>
> Hi Michael,
>
> Just set correct encoding in xsl:output tag (for instance
> "ISO-8859-1") and
> it won't be utf-8.
>
> -----Original Message-----
> From: Michael Beddow [mailto:mbnospam@mbeddow.net]
> Sent: Monday, March 05, 2001 09:32
> To: xalan-dev@xml.apache.org
> Subject: Re: Xalan-J2 outputing extra META tag in HTML
>
>
> A meta tag setting encoding to utf-8 causes problems on lots of older
> NS builds, especially on the Mac. Not a Xalan problem, but a big
> problem for anyone who has to cater for those clients.
>
> Michael
> ------------------------------------------
> Michael Beddow
> http://www.mbeddow.net/
>
> ----- Original Message -----
> From: "Jacob Wilbrink" <jacobw@pccoach.com>
> To: <xalan-dev@xml.apache.org>
> Sent: Monday, March 05, 2001 4:05 PM
> Subject: RE: Xalan-J2 outputing extra META tag in HTML
>
>
> > It is also confusing the JEditorPane set with a contenttype of
> "text/html".
> > I remove the META tag after the transformation is complete to be
> able to see
> > the HTML rendered in my JEditorPane. (JDK 1.3)
> >
> > - Jacob
> >
> > -----Original Message-----
> > From: Scott_Boag@lotus.com [mailto:Scott_Boag@lotus.com]
> > Sent: Friday, March 02, 2001 12:30 PM
> > To: xalan-dev@xml.apache.org
> > Subject: Re: Xalan-J2 outputing extra META tag in HTML
> >
> >
> >
> > > This line is confusing Netscape and causing it to screw up the
> page in
> > random ways, mostly by using the wrong fonts and ignoring CSS
> stylesheets.
> >
> > The question is, why? This is the first I've heard that this can
> cause
> > problems.
> >
> > As Gary said, this is part of the XSLT standard. We could indeed
> enable a
> > xalan-only attribute to allow you to control this.
> >
> > -scott
> >
> >
> >
> >
> >
> > "Chris P. McCabe"
> > <chris_mccabe@choiceh To:
> > xalan-dev@xml.apache.org
> > otels.com> cc: (bcc: Scott
> > Boag/CAM/Lotus)
> > Sent by: Subject:
> Xalan-J2
> > outputing extra META tag in HTML
> > cmccabe@choicehotels.
> > com
> >
> >
> > 03/01/01 06:16 PM
> > Please respond to
> > xalan-dev
> >
> >
> >
> >
> >
> >
> > When outputing HTML with Xalan-J2, I am getting the following
> inserted
> > right after the <head> element when I output my HTML:
> >
> >
> > <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
> >
> >
> > This line is confusing Netscape and causing it to screw up the page
> in
> > random ways, mostly by using the wrong fonts and ignoring CSS
> stylesheets.
> >
> >
> > Why is this being output and is there any way I can stop it from
> being
> > output? This information is already being set through the standard
> HTTP
> > mechanisms. I don't need a META tag in the HTML.
> >
> >
> > This is new behavior with Xalan-J2. It does not happen with
> Xalan-J1.
> >
> >
> > Thanks,
> > Chris
> >
> >
> >
> >
> >
> >
> >
> >
> >
> >
>
>
>
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list