mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-24 10:12:19 -05:00
xep.xsl: Small optimisations.
This commit is contained in:
parent
3c8083964f
commit
25867ed138
23
xep.xsl
23
xep.xsl
@ -116,17 +116,12 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
<td><strong>Authors:</strong></td>
|
<td><strong>Authors:</strong></td>
|
||||||
<td>
|
<td>
|
||||||
<xsl:for-each select='/xep/header/author'>
|
<xsl:for-each select='/xep/header/author'>
|
||||||
|
<xsl:value-of select='firstname'/>
|
||||||
|
<xsl:text> </xsl:text>
|
||||||
|
<xsl:value-of select='surname'/>
|
||||||
<xsl:if test="position()!=last()">
|
<xsl:if test="position()!=last()">
|
||||||
<xsl:value-of select='firstname'/>
|
|
||||||
<xsl:text> </xsl:text>
|
|
||||||
<xsl:value-of select='surname'/>
|
|
||||||
<xsl:text>, </xsl:text>
|
<xsl:text>, </xsl:text>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<xsl:if test="position()=last()">
|
|
||||||
<xsl:value-of select='firstname'/>
|
|
||||||
<xsl:text> </xsl:text>
|
|
||||||
<xsl:value-of select='surname'/>
|
|
||||||
</xsl:if>
|
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
@ -539,14 +534,10 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
|||||||
<xsl:template match='spec'>
|
<xsl:template match='spec'>
|
||||||
<xsl:param name='speccount' select='""'/>
|
<xsl:param name='speccount' select='""'/>
|
||||||
<xsl:variable name='specpos' select='position()'/>
|
<xsl:variable name='specpos' select='position()'/>
|
||||||
<xsl:choose>
|
<xsl:value-of select='.'/>
|
||||||
<xsl:when test='$specpos < $speccount'>
|
<xsl:if test='$specpos < $speccount'>
|
||||||
<xsl:value-of select='.'/><xsl:text>, </xsl:text>
|
<xsl:text>, </xsl:text>
|
||||||
</xsl:when>
|
</xsl:if>
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select='.'/>
|
|
||||||
</xsl:otherwise>
|
|
||||||
</xsl:choose>
|
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match='schemaloc'>
|
<xsl:template match='schemaloc'>
|
||||||
|
Loading…
Reference in New Issue
Block a user