Re: Difference between empty and not available elements

Mike Brown <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Lensch, Thomas wrote:
> 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?
> 

This is a question for the regular XSLT mailing list, not the
EXSLT list, which is for extensions to XSLT.

See http://www.mulberrytech.com/xsl/xsl-list/index.html
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.