mirror of
https://github.com/moparisthebest/xeps
synced 2024-10-31 15:35:07 -04:00
xep.xsl: Small optimisations.
This commit is contained in:
parent
3c8083964f
commit
25867ed138
21
xep.xsl
21
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:when test='$specpos < $speccount'>
|
|
||||||
<xsl:value-of select='.'/><xsl:text>, </xsl:text>
|
|
||||||
</xsl:when>
|
|
||||||
<xsl:otherwise>
|
|
||||||
<xsl:value-of select='.'/>
|
<xsl:value-of select='.'/>
|
||||||
</xsl:otherwise>
|
<xsl:if test='$specpos < $speccount'>
|
||||||
</xsl:choose>
|
<xsl:text>, </xsl:text>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match='schemaloc'>
|
<xsl:template match='schemaloc'>
|
||||||
|
Loading…
Reference in New Issue
Block a user