Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 27th, 2003, 11:55 AM
dkb dkb is offline
Authorized User
 
Join Date: Oct 2003
Posts: 33
Thanks: 0
Thanked 0 Times in 0 Posts
Default Well formed HTML

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
 
Old October 27th, 2003, 01:16 PM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

You need an output element with the method set to xml:
Code:
<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)





Similar Threads
Thread Thread Starter Forum Replies Last Post
"The server tag is not well formed" Newbie... daveyboy ASP.NET 1.0 and 1.1 Basics 5 June 6th, 2008 10:54 AM
XML That Is Not Well Formed rvanandel Ajax 3 July 2nd, 2007 11:46 AM
The server tag is not well formed. binici ASP.NET 2.0 Basics 6 May 15th, 2007 04:41 PM
This file is not well-formed error crmpicco XML 1 April 25th, 2005 11:21 AM
how to output non-well formed string harag XSLT 5 November 10th, 2003 11:47 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.