BoulderBum
Programmer
I have a stylesheet that processes an HTML page converted to a form of XML. It usually works, but sometimes the layout of the returned page changes.
One page, the format might be:
another page might be like this:
I can reference the TD node just fine, but is there a simple way to find the first child node containing text (without xsl:if or for-each)?
I was thinking something like
td//(firstnode where text isn't empty)
One page, the format might be:
Code:
<td customid="32">some text</td>
another page might be like this:
Code:
<td customid="33">
<b cusomid="34">some different text</b>
</td>
I can reference the TD node just fine, but is there a simple way to find the first child node containing text (without xsl:if or for-each)?
I was thinking something like
td//(firstnode where text isn't empty)