[monodoc] Fix previous xpath expression
authorJeremie Laval <jeremie.laval@gmail.com>
Tue, 21 Feb 2012 14:19:58 +0000 (15:19 +0100)
committerJeremie Laval <jeremie.laval@gmail.com>
Tue, 21 Feb 2012 14:19:58 +0000 (15:19 +0100)
mcs/tools/monodoc/Resources/mdoc-html-utils.xsl

index c5fd4fb87c5ea5c4706f330b15711c486c007e54..4403d0983fc86bec367e102ad687284aec974d33 100644 (file)
 
                <xsl:for-each select="$TypeParameters/TypeParameter">
                        <xsl:variable name="constraintsCount" select="count(Constraints/*)" />
-                       <xsl:if test="$constraintsCount > 0 and count(Constraints/*['Contravariant' or 'Covariant']) != $constraintsCount">
+                       <xsl:if test="$constraintsCount > 0 and count(Constraints/*[.='Contravariant' or .='Covariant']) != $constraintsCount">
                                <xsl:call-template name="CreateGenericParameterConstraints">
                                        <xsl:with-param name="constraints" select="Constraints" />
                                </xsl:call-template>