Re: exslt Digest, Vol 13, Issue 6

dkolomy <[email protected]>
Newsgroups gmane.text.xml.xslt.extensions
Message-ID <[email protected]>
Hi All,

How about this version:
<xsl:if test="x/child::*">
node is not empty. do something
</xsl:if> 

-----Original message-----
From: [email protected]
Date: Wed, 11 May 2005 19:00:03 +0100
To: [email protected]
Subject: exslt Digest, Vol 13, Issue 6

Send exslt mailing list submissions to
	[email protected]

To subscribe or unsubscribe via the World Wide Web, visit
	http://lists.fourthought.com/mailman/listinfo/exslt
or, via email, send a message with subject or body 'help' to
	[email protected]

You can reach the person managing the list at
	[email protected]

When replying, please edit your Subject line so it is more specific
than "Re: Contents of exslt digest..."


Today's Topics:

   1. Difference between empty and not available elements
      (Lensch, Thomas)


----------------------------------------------------------------------

Message: 1
Date: Wed, 11 May 2005 16:15:47 +0200
From: "Lensch, Thomas" <[email protected]>
Subject: [exslt] Difference between empty and not available elements
To: <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain;	charset="us-ascii"

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.


------------------------------

_______________________________________________
exslt mailing list
[email protected]
http://www.exslt.org/list

End of exslt Digest, Vol 13, Issue 6
************************************
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.