[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] looking for Map like construct to store key/value pairs in variable

Subject: Re: [xsl] looking for Map like construct to store key/value pairs in variable
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 28 Mar 2012 08:57:27 -0700



On Wed, Mar 28, 2012 at 7:55 AM, Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
> Dear Robby,
> I imagine they will tell you the normal way to do this is to acquire or
> construct a (temporary) tree, and then query that.
> It's much more powerful than a hashmap because it can be arbitrarily
> complex.
> Whether it performs as well in XQuery, where xsl:key is not available to
> indicate that an index is called for, will be an interesting question.
> (But not on topic for this list. Unless it's threaded as a comparison
> between the sisters.) In theory I suppose it should, inasmuch as this
> sort of thing is what XQuery is for, but there are likely to be devils
> in the details.
> I have heard rumors of a hash-like data structure for 3.0.
> Cheers,
> Wendell
> On 3/28/2012 7:50 AM, Robby Pelssers wrote:
>> Hi Wolfgang,
>> Actually I shouldn't have posted the question on this list. B I know
>> about the xsl:key instruction but was hoping for a xpath / xquery
>> solution where I can store the key/value pairs in a dictionary
>> variable ;-)
>> Will post my question to the Xquery list instead.
> --
> ======================================================================
> Wendell Piez B  B  B  B  B  B  B  B  B  B  B  B  B 
B mailto:wapiez@xxxxxxxxxxxxxxxx
> Mulberry Technologies, Inc. B  B  B  B  B  B  B 
B http://www.mulberrytech.com
> 17 West Jefferson Street B  B  B  B  B  B  B  B  B  B Direct Phone:
> Suite 207 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B 
B Phone: 301/315-9631
> Rockville, MD B 20850 B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  B  Fax:
> ----------------------------------------------------------------------
> B Mulberry Technologies: A Consultancy Specializing in SGML and XML
> ======================================================================

Dimitre Novatchev
Truly great madness cannot be achieved without significant intelligence.
To invent, you need a good imagination and a pile of junk
Never fight an inanimate object
To avoid situations in which you might make mistakes may be the
biggest mistake of all
Quality means doing it right when no one is looking.
You've achieved success in your field when you don't know whether what
you're doing is work or play
Facts do not cease to exist because they are ignored.
I finally figured out the only reason to be alive is to enjoy it.

Current Thread