1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="iso-8859-1" omit-xml-declaration="yes" indent="yes"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd"
/>
<xsl:template match="/">
<html><head></head><body>
<table>
<tr width="10">
<td>
<xsl:apply-templates select="//div[@type='edition']/ab/lb"/>
</td>
</tr>
</table>
</body></html>
</xsl:template>
<xsl:template match="//div[@type='edition']/ab/lb">
<xsl:if test="(position() mod 2)=0">
<pre>
<xsl:value-of select="concat(position(), ' ', normalize-space(following-sibling::text()))"/>
</pre>
</xsl:if>
</xsl:template>
</xsl:stylesheet> |
Partager