How to hide and show table rows in XSL file according to the string returning null or not from JS file

553 views Asked by At

content is extracted from javascript function where enhanceddetails is declared and fetch in node type.I want condition when enhancedetails is nt selected and its returns null.. so its row will disappear.

XSL file

<xsl:when test="selecteddata/essentialaddons[enhanceddetails!='']">
<fo:table-row background-color="white">
    <xsl:for-each select="selecteddata/enhancedaddons/enhanceddetails">
        <fo:table-cell border="1pt solid #cccccc">
            <xsl:for-each select="enhancedname">
                <fo:block text-align="justify" margin="10pt"  font-family="sans-serif">
                    <fo:inline padding-right="7pt" padding-left="10pt">
                        <fo:character character="&#x2022;"/>
                    </fo:inline>
                    <xsl:value-of select="." />
                </fo:block>
            </xsl:for-each>
            </fo:block>
        </fo:table-cell>
        <fo:table-cell border="1pt solid #cccccc" padding-before="10%">
            <fo:block text-align="center" margin="5pt"  font-family="sans-serif">
                Fixed Fee
            </fo:block>
        </fo:table-cell>
        <fo:table-cell border="1pt solid #cccccc" padding-before="7%">
            <fo:block text-align="center"  margin="5pt"  font-family="sans-serif">
                <xsl:value-of select="enhancedcost" />
            </fo:block>
        </fo:table-cell>
    </xsl:for-each>
</fo:table-row>

0

There are 0 answers