how will be the entire xsl?
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.o
<xsl:output method="xml" indent="yes" omit-xml-declaration="yes"
<xsl:template match="ROWSET">
<xsl:apply-templates select="ROW/."></xsl:apply-t
</xsl:template>
<xsl:template match="ROW">
<set label="{concat(substring(*
<xsl:attribute name="label">
<xsl:choose>
<xsl:when test="string-length(*[1]) > 8">
<xsl:value-of select="concat(substring(*
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="*[1]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:template>
</xsl:stylesheet>
?
Main Topics
Browse All Topics





by: GertonePosted on 2009-09-15 at 04:04:04ID: 25333590
there is an XPath function string-length() that gives you the number of characters
[1], 1, 8),'...')}" toolText="{*[1]}" value="{*[2]}" link="JavaScript:drillDown JS('{*[1]} ','dbUnitI d','wherec dn','param cdn');"/> [1], 1, 8),'...')"/>
<set label="{concat(substring(*
<xsl:attribute name="label">
<xsl:choose>
<xsl:when test="string-length(*[1]) > 8">
<xsl:value-of select="concat(substring(*
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="*[1]"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>