[xsl] <empty /> vs <empty></empty?

Subject: [xsl] <empty /> vs <empty></empty?
From: Eric Scheid <eric.scheid@xxxxxxxxxxxxxxx>
Date: Sun, 11 Dec 2005 14:21:49 +1100
Is there any way to control whether empty elements appear as
<empty></empty>, instead of <empty/>?

My problem is that some browsers don't like <div/> or <a name="x"/>, not
recognising that they both begin and *end* there, thinking instead they are
opening tags only.

As a workaround, I believe I can do this:
    <a name="x"><xsl:comment> empty </xsl:comment></a>

e.

Current Thread