Code: Select all
[anchor={SIMPLETEXT1?}]{SIMPLETEXT2}[/anchor]
My code for it is:
Code: Select all
<xsl:choose>
<xsl:when test="@anchor">
<span id="{SIMPLETEXT1}">{SIMPLETEXT2}</span>
</xsl:when>
<xsl:otherwise>
<span id="{SIMPLETEXT2}"></span>
</xsl:otherwise>
</xsl:choose>
- results in "Visible text", wrapped in the anchor/id "anchortext"
Code: Select all
[anchor=anchortext]Visible text[/anchor]
- results in an invisible anchor with the id "anchortext"
Code: Select all
[anchor]anchortext[/anchor]
Code: Select all
[anchor=anchortext][/anchor]
So, in the xsl how do I check if {SIMPLETEXT2} doesn't exist and not use it?
Also, is there any official documentation on this site on how to use xsl with BBCodes? If so, I haven't been able find it.
Thanks