[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

generating xhtml with msxml3

Subject: generating xhtml with msxml3
From: "Paul Bryant <gap66>" <paul@xxxxxxxxx>
Date: Sun, 6 May 2001 01:26:50 +0100
gap 66
Hi list,

I'm trying to generate w3 compliant xhtml using msxml3 sp1. There's a
couple of problems I've come across:

1) if xsl:output is set to 'html' msxml adds a meta tag with
'content-type' and 'encoding' attributes directly after the 'head'
element; as the XSLT spec apparently says. However the xhtml spec says the
first element after 'head' must be 'title'??

2) With the output set to xml I can get round the above problem but get an
xml processing instruction as the first line - which also compromises the
w3 xhtml spec - doctype should be the first tag.

3) Regardless of what encoding methods I specify, and where (source doc,
stylesheet, asp page) msxml insists on adding 'encoding="utf-16"' - which
throws IE5 into fits with entities like &eacute; (defined in my DTD) -
every other browser seems to be able to cope though. How do I stop this -
the MS site is strangely silent on the subject...

I've currently worked around (2) & (3) by writing the transformation
results to a string and then chopping off the PI, but this is crap. Any
better ideas?

Also, ideally I'd like to be able to parameterise the doctype-system and
doctype-public attributes; i.e. have one stylesheet that can generate w3
compatible html4 or xhtml depending on a parameter passed to it. I'm
currently having to use 2 almost identical stylesheets. My only though so
far is to stack them - have all common elements in one module, the output
of which is passed to either the html4 or xhtml1 specific stylesheet
afterwards. I did find a similar question on DaveP's FAQ but couldn't
understand the answer... Any better ideas?

TIA,

Paul Bryant

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.