Yippee!! Thanks a lot, Kevin
-----Original Message----- From: [email protected] [mailto:xmleditor-support-bounces at xmlmind.com] On Behalf Of Hussein Shafie Sent: 14. november 2005 10:20 To: kefl at birdstep.com Cc: xmleditor-support at xmlmind.com Subject: Re: [XXE] retrieving lists via xpath expressions Kevin Flynn wrote: > Given the following XML document: > > <root> > <ele id="one"> > <ele id="two"/> > </ele> > <ele id="three"/> > <root> > > executing the following XXE get macro command: > > <cfg:get expression="/root//ele/@id"/> > > returns the string "one". That is, it returns the string value of the > first node in the node set returned by the xpath expression. It would > be very useful if there were an option (or another command) that > returned a whitespace-separated list of the string values of *all* the > nodes in the node set. This list could then, for example, be fed into a "pick" > command: and I can think of lots of uses for that. > > Or maybe there's another simple way to do this? We have written an extension XPath function especially to do that: --- string join(node-set node-set, string separator) --- See http://www.xmlmind.com/xmleditor/_distrib/doc/commands/xpathextfunc.html -- XMLmind XML Editor Support List xmleditor-support at xmlmind.com http://www.xmlmind.com/mailman/listinfo/xmleditor-support

