Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: transformNode() strips some missing tags

From: alexandre damiron <wpceuro@-----.--->
To: NULL
Date: 11/7/2006 5:57:00 PM

Thanks a lot Martin, I did not paid attention to the output method. It 
works.

Martin Honnen a écrit :
> alexandre damiron wrote:
> 
>> <xsl:stylesheet version="1.0"
>>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>     <xsl:output method="html" encoding="UTF-8" />
> 
> You demand output method html here
> 
>>                     <img>
>>                     </img>
> 
> 
>> once run, the closing tag of the img element is stripped:
> 
>>                     <img>
> 
> And you get it (as in HTML the img element is an empty element and empty 
> elements have no end tag, that only occurs in XML).
> So you need to decide what you want, if you want HTML output then use 
> xsl:output method="html" and don't complain if the output is serialized 
> following HTML rules. If you want XML output then use <xsl:output 
> method="xml".
> 
> 


transparent
Print
Mail
Digg
delicious
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