Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] XSL transformation removing closing tag for empty div

From: "Andrew Welch" <andrew.j.welch@--------->
To:
Date: 6/3/2007 7:45:00 PM
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.



cheers
andrew


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent