Subject: Squire bracket is getting duplicate.
From: "JS rawat" <jrawat@xxxxxxxxxxxxxx>
Date: Tue, 22 Mar 2011 15:13:17 +0530
|
Hi Team,
Is there any logic by which duplicate squire bracket can be avoided
([<xref><sup>[2]</sup></xref>]) . Below are input and output
XSLT:
<xsl:template match="citationref">
<xref>
<xsl:attribute name="rid"><xsl:value-of
select="@linkend"/></xsl:attribute>
<xsl:attribute name="ref-type">bibr</xsl:attribute>
<sup>
<xsl:text>[</xsl:text>
<xsl:apply-templates/>
<xsl:text>]</xsl:text>
</sup>
</xref>
</xsl:template>
Input:
<para>Once ... <citationref linkend="cit379-1">1</citationref>. The
...[<citationref linkend="cit379-2">2</citationref>].</p>
Output:
<p>Once ... <xref rid="cit379-1" ref-type="bibr"><sup>[1]</sup></xref>. The
...[<xref rid="cit379-2" ref-type="bibr"><sup>[2]</sup></xref>].</para>
Required Output:
<p>Once ... <xref rid="cit379-1" ref-type="bibr"><sup>[1]</sup></xref>. The
...<xref rid="cit379-2" ref-type="bibr"><sup>[2]</sup></xref>.</p>
|