468,505 Members | 1,569 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,505 developers. It's quick & easy.

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 1657
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
reply views Thread by NPC403 | last post: by
reply views Thread by fmendoza | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.