This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Getting All Keys In A Key Table


Michael Kay wrote:
> 
> > I'm trying to understand keys. Is there a way to get all the keys in a
> > given table (e.g., the equalivent of dict.keys() in Python)?
> 
> Yes, it would be useful, but it's not possible. Sorry!

Can you explain why it's not possible? Is it that there's no requirement
to populate the table in advance of references to keys? Given that
forward references are possible, I would think that the table must be
fully populated at some point--that is, that even in a lazy
implementation a call to keys("key-name") would have the effect of
forcing population of the table from which a list of the unique keys
could be retrieved.

Thanks,

Eliot

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]