Is there a way to open a tag and not close it? For example:
<xsl:for-each select=".">
<span>
</xsl:for-each>
This is my code: http://pastebin.com/1Xh49YN0 . As you can see i need to open on a when tag and close it on another when tag (row 43 and 63).
This piece of code is not valid because XSLT is not well formed, but is there a way to do a similar thing? Thank you
Move the content between the two existing
xsl:chooseelements to a new templateIn the
xsl:when, open and close yourspan. Inside thespan, call this new template.Add an
xsl:otherwiseto thexsl:choose, in this, call the template, without adding aspan.As a general point, try to use
xsl:apply-templatesa bit more often, rather thanxsl:for-each, it should make it easier to understand what is going on.