471,092 Members | 1,324 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

XSL If Question

Hi,

I am using XSL if to look and see if a node exists and if so display it with
a header (see below). Some of the xml I transforming has nodes like this
<Test /and it shows up in my html report (header no value). How do I test
for this?

<xsl:if test="Test">
<xsl:if test="Test">
<b><xsl:text>Header: </xsl:text></b>
<xsl:value-of select="Test"/>
<br></br>
</xsl:if>

Thanks
Jan 11 '07 #1
1 1709
test for:

Test[normalize-space(node())]
Cheers,
Dimitre Novatchev

"Fred" <fr**@fred.comwrote in message
news:us**************@TK2MSFTNGP02.phx.gbl...
Hi,

I am using XSL if to look and see if a node exists and if so display it
with a header (see below). Some of the xml I transforming has nodes like
this <Test /and it shows up in my html report (header no value). How do
I test for this?

<xsl:if test="Test">
<xsl:if test="Test">
<b><xsl:text>Header: </xsl:text></b>
<xsl:value-of select="Test"/>
<br></br>
</xsl:if>

Thanks

Jan 11 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Mohammed Mazid | last post: by
3 posts views Thread by Stevey | last post: by
10 posts views Thread by glenn | last post: by
53 posts views Thread by Jeff | last post: by
56 posts views Thread by spibou | last post: by
2 posts views Thread by Allan Ebdrup | last post: by
3 posts views Thread by Zhang Weiwu | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.