Closed GoogleCodeExporter closed 9 years ago
A conditional was added to the <ref> xslt translation :
<xsl:template match="*[@name='ref']">
<xsl:if test="@href">
<xsl:if test="@class">
<xsl:choose>
<!--check if speechBy attribute exists in metalex output, if true then generate a 'from'
-->
<xsl:when test="@class='BungeniSpeechBy'">
<from>
<xsl:value-of select="."/>
</from>
</xsl:when>
<!-- otherwise generate normal reference -->
<xsl:otherwise>
<ref>
<xsl:attribute name="href"><xsl:value-of select="@href"/></xsl:attribute>
</ref>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:if>
<xsl:apply-templates/>
</xsl:template>
instead of :
<ref>
<xsl:if test="@href">
<xsl:attribute name="href"><xsl:value-of select="@href" /></xsl:attribute>
</xsl:if>
</ref>
Original comment by ashok.ha...@gmail.com
on 3 Aug 2009 at 9:26
Original comment by ashok.ha...@gmail.com
on 3 Aug 2009 at 9:27
Original issue reported on code.google.com by
ashok.ha...@gmail.com
on 3 Aug 2009 at 9:24