- <index>
- <xsl:attribute name="search">
- <xsl:choose>
- <xsl:when test="$update/@ok = 1">true</xsl:when>
- <xsl:otherwise>false</xsl:otherwise>
- </xsl:choose>
- </xsl:attribute>
- <title primary="true" lang="en">
- <xsl:value-of select="$title"/>
- </title>
- <map primary="true">
- <attr type="1" set="{$update/@set}">
- <xsl:value-of select="$update/@ap"/>
- </attr>
- </map>
- </index>
+ <xsl:if test="$update/@ok = 1">
+ <index search="true">
+ <title primary="true" lang="en"><xsl:value-of select="$title"/></title>
+ <map primary="true">
+ <attr type="1" set="{$update/@set}">
+ <xsl:value-of select="$update/@ap"/>
+ </attr>
+ </map>
+ </index>
+ </xsl:if>