Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7B7819C48 for ; Tue, 21 Feb 2012 22:50:13 +0000 (UTC) Received: (qmail 20904 invoked by uid 500); 21 Feb 2012 22:50:09 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 20827 invoked by uid 500); 21 Feb 2012 22:50:09 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 20818 invoked by uid 99); 21 Feb 2012 22:50:09 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:50:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests=MSGID_MULTIPLE_AT,RCVD_IN_DNSWL_NONE,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [194.25.134.80] (HELO mailout01.t-online.de) (194.25.134.80) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Feb 2012 22:50:00 +0000 Received: from fwd07.aul.t-online.de (fwd07.aul.t-online.de ) by mailout01.t-online.de with smtp id 1RzyWi-0005eP-AI; Tue, 21 Feb 2012 23:49:40 +0100 Received: from Preissa (TzjSxEZTQhdle7K3fG-3BU4aDXJlK5J1K9l+D7jSJgDDbXWmcA6QeOgGyzjW1F7Zdh@[217.95.117.214]) by fwd07.t-online.de with esmtp id 1RzyWg-23SiY40; Tue, 21 Feb 2012 23:49:38 +0100 From: =?UTF-8?Q?Konstantin_Prei=C3=9Fer?= To: "'Tomcat Users List'" References: <4f427ebb.0718440a.698b.573aSMTPIN_ADDED@mx.google.com> <4F439C58.1000600@pidster.com> <4f43a360.61c5ec0a.3fb9.ffffe177SMTPIN_ADDED@mx.google.com> <4F43D50F.2010009@pidster.com> <4F43F88D.2030500@ice-sa.com> <4F440E1F.5040201@christopherschultz.net> In-Reply-To: <4F440E1F.5040201@christopherschultz.net> Subject: RE: Documentation Question Date: Tue, 21 Feb 2012 23:49:33 +0100 Message-ID: <000601ccf0eb$1483e230$3d8ba690$@preisser@t-online.de> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Office Outlook 12.0 Thread-Index: Aczw4NL8C432q2y/RSebsMVVWQJ1DwACINqQ Content-Language: de X-ID: TzjSxEZTQhdle7K3fG-3BU4aDXJlK5J1K9l+D7jSJgDDbXWmcA6QeOgGyzjW1F7Zdh X-TOI-MSGID: 39d40abe-eb93-4860-89eb-76903b6cffcd X-Virus-Checked: Checked by ClamAV on apache.org Hello Christopher, > -----Original Message----- > From: Christopher Schultz [mailto:chris@christopherschultz.net] > Sent: Tuesday, February 21, 2012 10:35 PM > To: Tomcat Users List > Subject: Re: Documentation Question >=20 >=20 > Many (all?) XSLT processors will emit

(for example) if there is > no content in a

pair. I know that definitely doesn't work in > many (all?) web browsers, even in XHTML mode. It does work, but only if you deliver the content in XHTML mode, that = is, using a Content-Type of "application/xhtml+xml" (because then the = browsers use their strict XML parser). Otherwise, when it is delivered = as "text/html", Browsers will always use their HTML parser, even if you = use a Doctype that declares the document as XHTML. On a local Windows and Linux filesystem, if you save the file as .html, = it will be treated by browsers as HTML, whereas if you save it as = .xhtml, it will be treated as XHTML. For example, if you use the following XHTML document: Testpage Text

Text2 If you save this file as .xhtml on your filesystem and open it, the = Browser will render the page correctly (the red

is between Text1 and = Text2). At least it works with IE 9 (IE <=3D IE8 don't support XHTML), = Firefox, Chrome and Opera. ;-) Regards, Konstantin Prei=C3=9Fer --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org