I want the output of empty elements in HTML to always have an end tag like this:
<foo bar="zot"></foo>
and not like this:
<foo bar="zot"/>
I vaguely remember that there is an option for this, but i cannot find it or remember where to look for it. Does anyone if it is possible and how I can enforce it?
At first I thought
<xsl:output method="html"/>
would solve it. But it doesn't.
A few weeks ago Andrew Welch posted this solution on the list:
<quote>
The general solution to this is to output a space on each occurance of this, such as using  , preferrably wrapped in a test:
<xsl:if test="not(child::node())"> </xsl:if>
If you use xslt 2.0 you can use the xhtml output method, which solves all of this.
</quote>
Ivor