<td align="left" valign="top" width="30%">
<xsl:choose>
<xsl:when test="rhs/lineannotation|constraint">
- <xsl:apply-templates select="rhs/lineannotation" mode="rhslo"/>
- <xsl:apply-templates select="constraint"/>
+ <xsl:apply-templates select="rhs/lineannotation" mode="rhslo"/>
+ <xsl:apply-templates select="constraint"/>
</xsl:when>
<xsl:otherwise>
<xsl:text> </xsl:text>
<xsl:template match="rhs">
<xsl:apply-templates/>
+ <xsl:if test="following-sibling::rhs">
+ <xsl:text> |</xsl:text>
+ <br/>
+ </xsl:if>
</xsl:template>
<xsl:template match="nonterminal">
<xsl:text>/* </xsl:text>
<xsl:apply-templates/>
<xsl:text> */</xsl:text>
+ <br/>
</xsl:template>
<xsl:template match="constraint">
</xsl:call-template>
</xsl:variable>
- <xsl:if test="preceding-sibling::constraint">
- <br/>
- </xsl:if>
<xsl:text>[ </xsl:text>
<xsl:choose>
<xsl:apply-templates select="$target" mode="title.markup"/>
</a>
<xsl:text> ]</xsl:text>
+ <xsl:if test="following-sibling::constraint">
+ <br/>
+ </xsl:if>
</xsl:template>
<xsl:template match="constraintdef">