![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Preventing elements from collapsing during transform >Thread Next - Re: Preventing elements from collapsing during transform Re: Preventing elements from collapsing during transformTo: NULL Date: 8/10/2006 4:27:00 PM deane.barker@g... wrote: > I have an XML document with embedded XHTML. In some cases, I have an > HTML bookmark that looks like this: > > <a name="MyBookmark"></a> > > This sits in the XML just fine, but when I transform it, it comes out > like this: > > <a name="MyBookmark" /> > > That's great for XML, but not so good for HTML. If you choose <xsl:output method="html" /> in the XSLT stylesheet then all recognized HTML elements in no namespace should be output the HTML way so that a element should result in <a name="MyBookmark"></a> If you have <xsl:output method="xml" /> then you can't complain about the transformation result not following HTML rules. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/ | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
