If you know there is only one BBB and only one CCC, you can do
test="BBB/following-sibling::text()[1]/following-sibling::CCC"
Michael Kay
-----Original Message-----
From: Sameer N [mailto:samooo_vc(_at_)hotmail(_dot_)com]
Sent: 02 September 2004 23:28
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Check for text between two elements??
I want to test if there is a text between two elements using XSLT.
I have some xml like this....
<AAA>There is this text <BBB> more text </BBB> text continues
<CCC> still
more text </CCC> and back to text </AAA>
or it can be like this
<AAA>There is this text <BBB> more text </BBB><CCC>still more
text</CCC> and
back to text </AAA>
Now, I want to test whether there is text present between
tags <BBB> and
<CCC>. Is this possible using XSLT?
Thanks.
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today
- it's FREE!
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--+------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--