File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 435
435
</xsl : for-each >
436
436
</ul >
437
437
</xsl : if >
438
- <xsl : if test =" example | @example-value | example-value" >
438
+ <xsl : if test =" descendant:: example | @example-value | example-value" >
439
439
<strong >Code examples:</strong >
440
440
<xsl : if test =" @example-value | example-value" >
441
441
<xsl : call-template name =" widget-option-examples" >
442
442
<xsl : with-param name =" widget-name" select =" $widget-name" />
443
443
</xsl : call-template >
444
444
</xsl : if >
445
- <xsl : apply-templates select =" example" >
445
+ <xsl : apply-templates select =" descendant:: example" >
446
446
<xsl : with-param name =" number-examples" select =" count(example)" />
447
447
</xsl : apply-templates >
448
448
</xsl : if >
666
666
<xsl : call-template name =" example-code" />
667
667
</xsl : when >
668
668
<xsl : otherwise >
669
- <xsl : copy-of select =" code/text() " />
669
+ <xsl : apply-templates select =" code" />
670
670
</xsl : otherwise >
671
671
</xsl : choose >
672
672
</code ></pre >
1132
1132
</div >
1133
1133
</xsl : template >
1134
1134
1135
- <!-- <desc> and <longdesc> support <placeholder name="foo"> to replace the
1135
+ <!-- Some elements support <placeholder name="foo"> to replace the
1136
1136
placeholder with @foo from the <entry> -->
1137
- <xsl : template match =" desc|longdesc" >
1137
+ <xsl : template match =" desc|longdesc|code " >
1138
1138
<xsl : param name =" entry-name" />
1139
1139
<xsl : apply-templates select =" ./node()" >
1140
1140
<xsl : with-param name =" entry-name" select =" $entry-name" />
You can’t perform that action at this time.
0 commit comments