hi group,
I'm trying to achive to let T5 server xhtml valid pages. This seems to
be easy, because T5 uses a DOM (this is really great) and different
markup writers can render out different markup styles (e.g. html vs xhtml).
The html markup writer is the default markup writer, to use a xml writer
you can add a @ContentType annotation to your page(s).
http://www.w3.org/TR/xhtml-media-types/:
<quote>
'application/xhtml+xml' SHOULD be used for serving
XHTML documents to XHTML user agents. Authors who wish to support
both XHTML and HTML user agents MAY utilize content
negotiation by serving HTML documents as 'text/html' and XHTML documents
as 'application/xhtml+xml'. Also note that it is not necessary
for XHTML documents served as 'application/xhtml+xml' to follow
the HTML Compatibility Guidelines.
</quote>
BUT: @ContentType("application/xhtml+xml") is only respected by Mozilla
Browsers. IE doesnt know how to handle responses of this content type.
Same behavior for "text/xml".
Content negotation also isn't an option, because the annotation is too
static and applies to all user agents. For IE et al. my markup should be
rendered as valid xhtml and the content type should be classic "text/html".
Any ideas how to choose the xml markup writer in conjunction with
response content type "text/html"?
tia & best regards
c)hristian
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]