[Home] [By Thread] [By Date] [Recent Entries]

Subject: concat all items in a sequence
From: andrew welch <andrew.j.welch@xxxxxxxxx>
Date: Tue, 30 Aug 2005 14:48:05 +0100
I'm using the following:

contains(elem, val)

It's possible that 'elem' can be a sequence of more than one item.

The way I've code around this is to use string-join with an empty
string as one of the arguments:

contains(string-join(for $i in elem return $i, ''), val)

Is there a better way?

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member