Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 27th, 2003, 11:55 AM
dkb dkb is offline
Authorized User
Join Date: Oct 2003
Location: , , United Kingdom.
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.

Reply With Quote
  #2 (permalink)  
Old October 27th, 2003, 01:16 PM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts

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)
Reply With Quote

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

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

All times are GMT -4. The time now is 02:10 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.