mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-28 04:02:20 -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>
|
||||
<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:value-of select='firstname'/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select='surname'/>
|
||||
<xsl:text>, </xsl:text>
|
||||
</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>
|
||||
</td>
|
||||
</tr>
|
||||
@ -539,14 +534,10 @@ OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
<xsl:template match='spec'>
|
||||
<xsl:param name='speccount' select='""'/>
|
||||
<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:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:value-of select='.'/>
|
||||
<xsl:if test='$specpos < $speccount'>
|
||||
<xsl:text>, </xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match='schemaloc'>
|
||||
|
Loading…
Reference in New Issue
Block a user