Re: [xsl] PHP XSL adds Content-Type meta

Subject: Re: [xsl] PHP XSL adds Content-Type meta
From: "Martynas Jusevicius" <martynas.jusevicius@xxxxxxxxx>
Date: Tue, 8 May 2007 15:16:47 +0200
What's an OP? Are you referring to me? :)
I'm generating valid XHTML, no internal or temporary formats.
I just have a bunch of page-specific stylesheets, which form the main
content of the page and include the "master" stylesheet, shich defines
the general layout as well as the <head>.

Martynas

On 5/8/07, Alexander Johannesen <alexander.johannesen@xxxxxxxxx> wrote:
On 5/8/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Though I got the impression here that they were inferring XHTML from the use
> of method="xml" and doctype-system="....", which is definitely a departure
> from the spec.

It certainly does, which makes it a bit tricky to serve valid XHTML
Strict to browsers who don't understand XHTML through
application/xml+xhtml as it wraps the <script> elements with CDATA but
without the normal comment wrapper workarounds for stupid browsers
such as Internet Explorer. Hmm. It would be good if there was a way to
make the output="xml" work strict, though.

However, the OP mentioned that he was creating lots of XHTML files
that didn't support the <head> section (some internal or temporary
formats?). If that is the case, then you *can't* put in the XHTML
Strict doctype, because it ain't XHTML Strict and you can't expect
your tools to ignore the doctype if you present it. So, going back,
you're doing it wrong, mate. :)


Alex

Current Thread