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

RE: Nodes and Strings

Subject: RE: Nodes and Strings
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
Date: Tue, 26 Jul 2005 02:55:49 +0000
nodes with strings
See Sal mangano's "XSLT Cookbook" from O'Reilly publishing. It has recipes for set intersection, difference, etc. Even if you don't buy the book, the XSL recipes themselves are downloadable from O'Reilly's website. You should be able to find it by Googling.

Regards,

--A


From: "Elaine Prata" <Elaine.Prata@xxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  Nodes and Strings
Date: Mon, 25 Jul 2005 17:47:47 -0300

Hi all.

Please forgive me if my doubt is already in archive or if it is very
simple but I didn't find it.

I have two sets that I need to compare but the values aren't the same.
Example:

<setA>
    <element>value1</element>
    <element>value2</element>
    <element>value3</element>
    <element>value4</element>
    <element>value5</element>
</setA>

<setB>
    <element>aStringBeforeValue.value1</element>
    <element>aStringBeforeValue.value2</element>
    <element>aStringBeforeValue.value3</element>
</setB>

expected result (for intersection between the sets):

<setC>
    <element>value1</element>
    <element>value2</element>
    <element>value3</element>
</setC>

I want to get the intersection (difference, whatever) between two sets
that haven't the same string values for their elements... (I didn't
found a function like substring, for example, that receives as
parameter
a node list... only for strings... So, I'm resolving this problem with
a
little bit long and confused code.)
Is it possible?

Thanks


_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE! http://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.