xsl-list
[Top] [All Lists]

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

2012-03-28 09:55:32
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.  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                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--