xep.xsl: Small optimisations.

This commit is contained in:
Emmanuel Gil Peyrot 2017-01-28 19:15:02 +00:00 committed by Sam Whited
parent 3c8083964f
commit 25867ed138
1 changed files with 7 additions and 16 deletions

23
xep.xsl
View File

@ -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 &lt; $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 &lt; $speccount'>
<xsl:text>, </xsl:text>
</xsl:if>
</xsl:template>
<xsl:template match='schemaloc'>