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

Re: XSL transformation removing closing tag for empty

Subject: Re: XSL transformation removing closing tag for empty div
From: "Andrew Welch" <andrew.j.welch@xxxxxxxxx>
Date: Sun, 3 Jun 2007 20:44:09 +0100
Re:  XSL transformation removing closing tag for empty
On 6/3/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> Thanks for the reply. Since i am setting the content type as
> text/xml, I cannot set the output to html. If I do, it will
> throw an error. The reason I set the content type as text/xml
> is because I need an Ajax response, which should be in XML format.

Well, <div/> is in XML format. So we need to understand what's happening to
this XML and why it's being passed to something that can't handle it.

It could well be because with:

<div class="bold"/>sometext

the text "sometext" will take on the bold style, whereas with

<div class="bold"></div>sometext

...it wont.

This is why I asked for a "don't minimise" output option (or
prioprietary extension) long ago, and the general response was - as
the two are equivalent it shouldn't matter (which I agree with now :)

In the end the "xhtml" output option of 2.0 came along which did the trick.


Current Thread


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.
First Name
Last Name
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.