|
Subject:
|
Well formed HTML
|
|
Posted By:
|
dkb
|
Post Date:
|
10/27/2003 10:55:31 AM
|
Hi there, i imagine this is quite a simple query.....
Adding a line for output into a XSLT document like so:-
<LINK REL="STYLESHEET" HREF="style.css" TYPE="text/css"/>
I would expect it to appear the same in the resulting HTML. However it appears as:-
LINK REL="STYLESHEET" HREF="style.css" TYPE="text/css">
It is not closed off correctly and is therefore not well formed.
Any idea why this may be?
I want the html I am producing to be well formed so I can use it as if it were an XML document.
Thanks
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
10/27/2003 12:16:40 PM
|
You need an output element with the method set to xml:
<xsl:output method="xml"/>
This should be the first element under the document element. Because you have html as your outer result element the transformer thinks you want html. This is according to the spec.
Joe (MVP - xml)
|