Skip to content
Permalink
Browse files

documentation build: don't escape embedded html; first stab at option…

… examples
  • Loading branch information
jzaefferer committed Jan 16, 2009
1 parent 0c87cf4 commit 4d44acdefc82f9ec4e0933bbabebed21fa4bf337
Showing with 9 additions and 29 deletions.
  1. +9 −29 release/build/style.xsl
@@ -67,19 +67,7 @@
</xsl:template>

<xsl:template name="break">
<xsl:param name="text" select="." />
<xsl:choose>
<xsl:when test="contains($text, '&#xa;&#xa;')">
<xsl:value-of select="substring-before($text, '&#xa;&#xa;')" />
<br /><br />
<xsl:call-template name="break">
<xsl:with-param name="text" select="substring-after($text, '&#xa;&#xa;')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="." disable-output-escaping="yes" />
</xsl:template>

<xsl:template name="option">
@@ -91,22 +79,14 @@
</div>
<div class="param-details">
<p><xsl:value-of select="desc"/></p>
<!--
<h4>Code sample:</h4>
<code>
Here be code samples once added to the exporter script.<br />
$("#dialog").dialog({<br />
&#160;&#160;buttons: {<br />
&#160;&#160;&#160;&#160;'Delete all items in recycle bin': function() {<br />
&#160;&#160;&#160;&#160;&#160;&#160;$(this).dialog('close');<br />
&#160;&#160;&#160;&#160;},<br />
&#160;&#160;&#160;&#160;Cancel: function() {<br />
&#160;&#160;&#160;&#160;&#160;&#160;$(this).dialog('close');<br />
&#160;&#160;&#160;&#160;}<br />
&#160;&#160;}<br />
});
</code>
-->
<!-- TODO select all examples -->
<xsl:for-each select="following-sibling::example[1]">
<h4>Code sample:</h4>
<p><xsl:value-of select="desc" disable-output-escaping="yes"/></p>
<code>
<xsl:value-of select="code"/>
</code>
</xsl:for-each>
</div>
</div>
</xsl:template>

0 comments on commit 4d44acd

Please sign in to comment.
You can’t perform that action at this time.