Difference between empty and not available elements

"Lensch, Thomas" <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Hi,

data parsed by my xsl sometimes has empty elements, say <x/>

In my xsl i have the following code:

<xsl:if test="x">
	do something

test is true for empty the above empty element an something like
<x><y>text</y></x>

Something like "and x=!''" doesn't work because text isn't always
present.

Any ideas?

Best regards
Thomas.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.