remove duplicate text in an output html element
Hi All,
I wrote an xsl to output xml as html. in one <td> i get two values, say <td>1 1</td>. between two 1's there is a space. i dont want that extra 1 in the output. could anyone help me. below is the xml and xsl.
$tl1i can have the value 0001, 0001a, etc.
<xsl:variable name="check" select="$docB//TL1CommandSection[./Head=$tl1cs]//table[@tabType='TL1AttrImplementation']//tbody/row[.//TL1Instance!=$tl1i][.//TL1Attribute=$tl1cAttr]//TL1Instance"/>
<td>
<xsl:value-of select="$docC//ratttable/rattrow[.//TL1Instance = $check]//TL1Block"></xsl:value-of>
</td>
xml
<rattrow attrfield = "1">
<rattcell format = "Small" colname = "1"><TL1Instance>0002</TL1Instance></rattcell>
<rattcell format = "Small" colname = "2"><TL1Block>1</TL1Block></rattcell>
<rattcell format = "Small" colname = "4"><TL1Attribute attrType = "Positional">AID</TL1Attribute></rattcell>
</rattrow>
<rattrow attrfield = "1">
<rattcell format = "Small" colname = "1"><TL1Instance>0002a</TL1Instance></rattcell>
<rattcell format = "Small" colname = "2"><TL1Block>1</TL1Block></rattcell>
<rattcell format = "Small" colname = "4"><TL1Attribute attrType = "Positional">AID</TL1Attribute></rattcell>
</rattrow>
output
<td>1 1</td>
__________________
Rummy
|