Skip to content

Commit ea0fdee

Browse files
committed
Fix category descriptions: Use CDATA and tweak cat2tax.xsl
1 parent 6785e75 commit ea0fdee

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

cat2tax.xsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<name><xsl:value-of select="@name"/></name>
77
<slug><xsl:value-of select="@slug"/></slug>
88
<xsl:if test="desc/child::node()">
9-
<description><xsl:value-of select="desc"/></description>
9+
<description><xsl:copy-of select="desc/text()|desc/*"/></description>
1010
</xsl:if>
1111
<xsl:if test="category">
1212
<children>
@@ -15,7 +15,7 @@
1515
</xsl:if>
1616
</item>
1717
</xsl:template>
18-
18+
1919
<xsl:template match="categories">
2020
<category>
2121
<xsl:apply-templates select="node()"/>

categories.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
<categories>
22
<category name="Effects" slug="effects">
33
<desc>
4+
<![CDATA[
45
<p>Effects include extensions to jQuery's built-in animate method, providing support for animating colors and doing transitions from one class to another.</p>
56
<div class="longdesc">
67
<p>For class transitions, <code>addClass(class)</code>, <code>removeClass(class)</code>, <code>toggleClass(class)</code> and <code>toggleClass(switch)</code> are each extended to accept three additional parameters: <code>speed</code>, <code>easing</code> (optional), and <code>callback</code>.</p>
@@ -12,6 +13,7 @@
1213
<p>For color animation support, jQuery UI bundles the <a href="https://github.com/jquery/jquery-color">jquery-color plugin</a>. The plugin extends jQuery's <code>animate</code> method with support for animating the following properties: <code>backgroundColor, borderBottomColor, borderLeftColor, borderRightColor, borderTopColor, color, outlineColor</code></p>
1314
<p>Effects also add, to jQuery's built-in linear and swing transitions, a bunch of easings. The full list: <code>linear, swing, easeInQuad, easeOutQuad, easeInOutQuad, easeInCubic, easeOutCubic, easeInOutCubic, easeInQuart, easeOutQuart, easeInOutQuart, easeInQuint, easeOutQuint, easeInOutQuint, easeInExpo, easeOutExpo, easeInOutExpo, easeInSine, easeOutSine, easeInOutSine, easeInCirc, easeOutCirc, easeInOutCirc, easeInElastic, easeOutElastic, easeInOutElastic, easeInBack, easeOutBack, easeInOutBack, easeInBounce, easeOutBounce, easeInOutBounce</code></p>
1415
</div>
16+
]]>
1517
</desc>
1618
</category>
1719
<category name="Interactions" slug="interactions">

0 commit comments

Comments
 (0)