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><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 &lt; $speccount'> <xsl:if test='$specpos &lt; $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'>