[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Check for text between two elements??

Subject: RE: Check for text between two elements??
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Fri, 3 Sep 2004 08:48:22 +0100
check texts i sent 02
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@xxxxxxxxxxx] 
> Sent: 02 September 2004 23:28
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  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/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.