I know how you like obscure bugs at Ginger Alliance.
You're going to *love* this one :-)
This stylesheet:
<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="*">
<xsl:choose>
<xsl:when test="''"/>
<xsl:otherwise>
<tag>
<xsl:text>text</xsl:text>
<xsl:attribute name="attr"/>
</tag>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>
...produces...
Error [code:246] [URI:file:/home/robin/kitsite/schema/kitdef-to-schema.xsl] [line:12]
[node:element '<xsl:attribute>']
attribute 'attr' created after a child has been added
sabcmd: ../output.cpp:1083: Bool OutputterObj::eventEndOutput(): Assertion `state ==
STATE_OUTSIDE' failed.
Aborted (core dumped)
.robin.