XSL select emplty nodes

R

ree32

I am trying to select nodes that are like this <caption></caption>

The problem is that some times they are like this in the XML document:
<caption>
</caption>

A newline is between the start and end tags.

I was wondering what is the best way to find these nodes.

I have tried
<xsl:when test="Caption=' '">

but this only covers one space. I tried string-length() but that equals
to 1 for
<caption>
</caption>

Is there a better way to do this? is there a String.Replace(" ", "")
function like that in VB to trim spaces?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,001
Messages
2,570,249
Members
46,846
Latest member
BettinaOsw

Latest Threads

Top