![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Re: transformNode() strips some missing tags [Thread Next] Re: transformNode() strips some missing tagsTo: 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". > > | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
