Posted 2004-05-03T20:59:00+01:00 in xslt

XSLT Tip

Sometimes I want to make sure I get a start tag and an end tag in XSL generated XML documents:

<a><xsl:text/></a>

This will create <a></a> instead of <a/> in libxslt-based transformers.