xsl:value-of Not Working

Posted by Ashar Syed on Stack Overflow See other posts from Stack Overflow or by Ashar Syed
Published on 2010-12-28T17:46:30Z Indexed on 2010/12/28 17:53 UTC
Read the original article Hit count: 243

Filed under:

Hi, I am having a little issue this piece of code in my Xsl.

<xsl:if test="ShippingName != ''">
                <tr>
                    <td colspan="6" style="border:none;" align="right">
                        <strong>Shipping Via</strong>
                    </td>
                    <td align="right">
                        <xsl:value-of select="ShippingName" />
                    </td>
                </tr>
              </xsl:if>

It passes the test condition (ShippingName != '') and assigns the style to 'td' but at the point where I am displaying the value that this element contains (), it displays nothing.

Any ideas why this could be happening. Thanks.

© Stack Overflow or respective owner

Related posts about xslt