equal
deleted
inserted
replaced
202 |
202 |
203 <!-- para default processing --> |
203 <!-- para default processing --> |
204 <xsl:template match="para"> |
204 <xsl:template match="para"> |
205 <p><xsl:apply-templates/></p> |
205 <p><xsl:apply-templates/></p> |
206 </xsl:template> |
206 </xsl:template> |
|
207 <xsl:template match="para[list|shortlist]"> |
|
208 <div> |
|
209 <xsl:apply-templates select="list|shortlist"/> |
|
210 </div> |
|
211 </xsl:template> |
207 |
212 |
208 <!-- formalpara processing --> |
213 <!-- formalpara processing --> |
209 <xsl:template match="formalpara/para"> |
214 <xsl:template match="formalpara/para"> |
210 <xsl:apply-templates/> |
215 <xsl:apply-templates/> |
211 </xsl:template> |
216 </xsl:template> |
298 |
303 |
299 <xsl:template match="section" mode="navbar-name"> |
304 <xsl:template match="section" mode="navbar-name"> |
300 <xsl:value-of select="title/text()"/> |
305 <xsl:value-of select="title/text()"/> |
301 </xsl:template> |
306 </xsl:template> |
302 |
307 |
303 <xsl:template match="section|story|poetry" mode="navbar-link"> |
308 <xsl:template match="section|story|poetry" mode="href"> |
304 <xsl:call-template name="get-id"/> |
309 <xsl:call-template name="get-id"/> |
305 </xsl:template> |
310 </xsl:template> |
306 |
311 |
307 <xsl:template name="navbar-link"> |
312 <xsl:template name="navbar-link"> |
308 <xsl:param name="prefix"></xsl:param> |
313 <xsl:param name="prefix"></xsl:param> |
309 <a> |
314 <a> |
310 <xsl:attribute name="href"> |
315 <xsl:attribute name="href"> |
311 <xsl:apply-templates select="." mode="navbar-link"/> |
316 <xsl:apply-templates select="." mode="href"/> |
312 <xsl:text>.html</xsl:text> |
317 <xsl:text>.html</xsl:text> |
313 </xsl:attribute> |
318 </xsl:attribute> |
314 <xsl:value-of select="$prefix"/> |
319 <xsl:value-of select="$prefix"/> |
315 <xsl:apply-templates select="." mode="navbar-name"/> |
320 <xsl:apply-templates select="." mode="navbar-name"/> |
316 </a><br/> |
321 </a><br/> |
458 <a href="{$href}.html"><xsl:value-of select="docinfo/title"/></a> |
463 <a href="{$href}.html"><xsl:value-of select="docinfo/title"/></a> |
459 </xsl:template> |
464 </xsl:template> |
460 |
465 |
461 <xsl:template match="*" mode="xref"/> |
466 <xsl:template match="*" mode="xref"/> |
462 |
467 |
|
468 <xsl:template match="link"> |
|
469 <xsl:variable name="linkend" select="@linkend"/> |
|
470 <a> |
|
471 <xsl:attribute name="href"> |
|
472 <xsl:apply-templates select="//*[@id=$linkend]" mode="href"/> |
|
473 <xsl:text>.html</xsl:text> |
|
474 </xsl:attribute> |
|
475 <xsl:apply-templates/> |
|
476 </a> |
|
477 </xsl:template> |
|
478 |
463 <xsl:template match="section/title"/> |
479 <xsl:template match="section/title"/> |
464 <xsl:template match="section/subtitle"/> |
480 <xsl:template match="section/subtitle"/> |
465 |
481 |
466 </xsl:stylesheet> |
482 </xsl:stylesheet> |
467 |
483 |