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

Re: check parent text present between child nodes

Subject: Re: check parent text present between child nodes
From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx>
Date: Fri, 21 Apr 2006 12:49:31 -0500
text present
On 4/21/06, Vivek Kumar-LN,Gurgaon <kvivek@xxxxxx> wrote:
> Hi i am struck with this situation
>
> XML is like this
> <element1>this is element1 text<newElement1>this is newElement1
> text</newElement1>element1 text continue<newElement2>this is newElement2
> text</newElement2><newElement3>this is newElement3 text</newElement3>

This isn't a very good example.  Are newElement1, newElement2,
newElement3 supposed to be children of element1 as you've given?  Or
are they supposed to be siblings of element1? Since there's no closing
tag for Element1 it's impossible to tell.

>
> now i want to find that whether newElement1 and newElement2 containing text
> of element1 or not same with newElement2 and newElement3.

This makes no sense to me.  Are you trying to check to see if the
"text" of newElement1 is the same as new Element2?  If you're just
checking to see if newElement1 containst the text of element1 your
statement seems odd.  Ie I'd expect you just to say find whether the
text of newElement1 contains element1.

Try to have a well-formed example and the expected output.  It's also
difficult to see how you want to "check".  Do you want a single
operation that returns true if the condition is true for any node in
the nodeset?  Or do you want multiple tests, etc?


Jon Gorman

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.