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

Re: generating xhtml with msxml3

Subject: Re: generating xhtml with msxml3
From: Peter Flynn <peter@xxxxxxxxxxx>
Date: Sun, 6 May 2001 01:55:32 +0100 (IST)
Re:  generating xhtml with msxml3
Paul Bryant writes:

> 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'??

I don't think so. My copy says:

<!ENTITY % head.misc "(script|style|meta|link|object)*">

<!-- content model is %head.misc; combined with a single
     title and an optional base element in any order -->

<!ELEMENT head (%head.misc;,
     ((title, %head.misc;, (base, %head.misc;)?) |
      (base, %head.misc;, (title, %head.misc;))))>
  
<title> can go anywhere in <head>, but it does have to be
present.

> 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.

No, PIs can go anywhere except within start-tags or end-tags.

> 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?

Stick to the spec and use compliant software?

///Peter

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.