[XQuery Talk Mailing List Archive Home] [By Date] [By Thread] [By Subject] [By Author] [Recent Entries] [Reply To This Message]

If Statements within an If Statement?

Wei, Alice J. ajwei at indiana.edu
Thu Apr 3 06:12:47 PST 2008


  If Statements within an If Statement?
> As for the distinct-values in my code, I always have the assumption
> that it has been generating only results with distinct values as long
> as it is not deep distinct.

I have no idea what you mean by that.
distinct-values returms the distinct string values

If you have a sequence of p items that looks like this

<p>
Send 10c for mailing TODAY!
                                <address>
<addressLine>Kenmore, Mitford, CR-272 N.H. 03055</addressLine>
</address>
</p>

then the string that is calcultad and compared is

"
Send 10c for mailing TODAY!

Kenmore, Mitford, CR-272 N.H. 03055

"

which seems a pretty odd thing to do, but I don't know your
requirements.

That is exactly how I wanted it to read, although I am not sure how "white spaces" get in this picture.
 The tag, maybe? I might have to try using declare boundary-space strip; Would this help?

I wanted to have the string to be read so duplicates would be eliminated.

Thanks for pointing out those errors. The code you have corrected is now working like I would like them to be.

Alice
======================================================
Alice Wei
MIS 2008
School of Library and Information Science
Indiana University Bloomington
http://x-query.com/mailman/listinfo/talk




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-2007 All Rights Reserved.