Got context functions back in, added noteworthy stuff, replaced js linebreak replacer with xstl
This commit is contained in:
parent
fb11b33d68
commit
6ac46e6a5a
4 changed files with 66 additions and 18 deletions
|
@ -37,7 +37,9 @@
|
|||
</div>
|
||||
<div class='more'>
|
||||
<div class='desc'>
|
||||
<xsl:value-of select="desc"/>
|
||||
<xsl:for-each select="desc">
|
||||
<xsl:call-template name="break" />
|
||||
</xsl:for-each>
|
||||
</div>
|
||||
<xsl:for-each select="examples">
|
||||
<div class='example'>
|
||||
|
@ -66,4 +68,20 @@
|
|||
</html>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="break">
|
||||
<xsl:param name="text" select="." />
|
||||
<xsl:choose>
|
||||
<xsl:when test="contains($text, '

')">
|
||||
<xsl:value-of select="substring-before($text, '

')" />
|
||||
<br /><br />
|
||||
<xsl:call-template name="break">
|
||||
<xsl:with-param name="text" select="substring-after($text, '

')" />
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$text" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue