Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - Element "self-close" disappears -- $5 if you help me! >Thread Next - Re: Element "self-close" disappears -- $5 if you help me! Re: Element "self-close" disappears -- $5 if you help me!To: NULL Date: 10/8/2005 11:03:00 AM "TL" <toddlevy@h...> wrote in message
news:1128749636.586761.112230@g......
> Hello all -
>
> I'm having a problem that is driving me totally nuts.
>
> Basically, I'm running a transform, and the self closer on my elements
> is being omitted (i.e. stripped out).
>
> It's there in the XSL doc, but doesn't show up in the output.
>
>
> For example, if my XSL has...
>
> <img src="foo.jpg" alt="Product Image" />
>
> ...the output ends up being...
>
> <img src="foo.jpg" alt="Product Image">
>
> This is also happening for other tags such as 'br' and 'input' tags.
>
>
> This is what the top of my XSL doc looks like...
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
>
>
> I'm using these two server objects...
>
> Server.CreateObject("MSXML2.FreeThreadedDOMDocument.4.0")
> Server.CreateObject("MSXML2.XSLTemplate.4.0")
>
>
> Any help is GREATLY appreciated... I will paypal $5 US to the first
> person to correctly solve my problem!
>
> If anyone cares, the site I'm working on is here...
> http://xboxradar.com
>
> Thanks in advance,
> TL
> toddlevy [at] hotmail [dot] com
>
Are you sure you have method="xml" on the xsl:output, what you are showing looks
like method="html"? Are you importing into a stylesheet with the method set to
html, or vice versa?
--
Joe (MVP - XML)
https://mvp.support.microsoft.com/profile=8AA9D5F5-E1C2-44C7-BCE8-8741D22D17A5
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
