Re: [xsl] Closing element required instead of self closing

Subject: Re: [xsl] Closing element required instead of self closing
From: Owen Rees <owen.rees@xxxxxx>
Date: Tue, 15 Jul 2008 15:41:57 +0100
--On Tuesday, July 15, 2008 14:54:57 +0100 Andrew Welch wrote:

And come on, saying deliver HTML to an HTML user agent is pretty
unhelpful - you just flick a switch don't you?  :)

If the final form of the content is being generated by XSLT it should not be too hard to arrange to generate both HTML and XHTML and choose which to deliver with some strategy based on what the client sends in its Accept header.

If you are delivering content as application/xhtml+xml to an agent that
understands XHTML then any valid serialisation of the XML will do just

You might be right, but don't all the elements have to be lowercase? So <DIV/> wouldn't be valid XHTML... There must a be a few more differences...

For one, the elements have to be in the right namespace for it to be XHTML.

Owen Rees; speaking personally, and not on behalf of HP.
Hewlett-Packard Limited.   Registered No: 690597 England
Registered Office:  Cain Road, Bracknell, Berks RG12 1HN

Current Thread