You missed the space within the xsl:text element. An empty xsl:text element does nothing. I put a space there because you showed it in your desired output. I wasn't sure if you really wanted the space, or if you just wanted a start tag followed immediately by an end tag. If that's what you wanted (a start tag followed immediately by an end tag) then you can't achieve that - it's precisely equivalent to an empty tag (that is, <a></a> is exactly equivalent to <a/>), and if your receiving application accepts one and not the other, then that's a serious bug and you should fix it. The whole point about XML is the benefit of sticking to the standard, and there's no point in using XML unless your applications follow the standard, you might as well invent your own private markup language.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference
|