Re: problem with empty tag

Martin Honnen <[email protected]> Tue, 18 Sep 2007 14:39:17 +0200
Newsgroups gmane.comp.mozilla.devel.layout.xslt
Organization Liberty Development
Message-ID <[email protected]>
mozilla wrote:
> Hi, in my xsl file i have the following code:
> <div id="sum-Description" class="left" ></div>
> <div class="action"><a target="mesCollapses"><img 
> src="images/icons/fieldset.close.gif" alt="fermer" title="fermer"/>    <span 
> class="hidden">open/close</span></a></div>
> Problem: in output i have
> 
> <div class="left" id="sum-Description"><div class="action"><a 
> target="mesCollapses"><img title="fermer" alt="fermer" 
> src="images/icons/fieldset.close.gif"/><span 
> class="hidden">open/close</span></a></div></div>
> 
> if someone have an idea ...

Which XSLT processor are you using and how do you run the transformation 
and check the result?

I have put together a minimal example based on your code snippet above 
and loaded that 
<URL:http://home.arcor.de/martin.honnen/xslt/test2007091801.xml> with 
Firefox 2.0 and check the result with DOM inspector and all is fine, the 
two div elements are siblings.

If you are using Mozilla and still have that problem then please post 
the URL to a minimal sample allowing us to reproduce the problem.

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/