I'm trying to store HTML in a Variable. I will process code, input info into the HTML and then pass it on... Here is an example:
Code:
<xsl:when test="contains($string, '[URL]')">
<xsl:variable name="contentBefore" select="substring-before($string, '')" />http://<br />
&nb...$string, ' ')" />
<xsl:variable name="href" select="substring-before(substring-after($string, ''), '')" />
<xsl:variable name="hyperlink">
<a href="{$href}">
<xsl:value-of select="$href" />
</a>
</xsl:variable>
<xsl:call-template name="processContent">
<xsl:with-param name="string" select="concat(concat($contentBefore, $hyperlink),$contentAfter)" />
</xsl:call-template>
</xsl:when>
...
[Other Whens to Proccess other Tags]
...
<xsl:otherwise>
<xsl:value-of select="$string" />
</xsl:otherwise>
I want to process a Code Tag and translate it into HTML Tag. Previously I set something similar up to where it processed each tag and displayed it as it processed, however, complications occur when several code Tags such as an image link consisting or url code tag and a img code tag would cause blank data to come out. Others such as bold color tags... which is bold tag and color tag... etc....
The code is processed and the value-of its posted... but none of the html is. so instead of getting:
Code:
<a href="nowhere/">nowhere</a>
I just get:
Any ideas??