Subject: Re: [xsl] XML tags as map keys and impact on XSLT/XPath From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Mon, 21 Jun 2010 12:19:39 -0400 |
On 18/06/2010 07:28, Wolfgang Laun wrote:Every now and then, people (not me) want to represent a Map<K,V> in XML by using
s.th. like
<map>
<k1>v1</k1>
<k2>v2</k2>
...
</map>
with ki from K and vi from V. Apart from the obvious limitation for K's values, I feel that this is somehow violating the spirit of XML....
I agree: in general it's a poor way of using XML, and it makes it more difficult to process using XSLT.
<entry key="k1">v1</entry> <entry key="k2">v2</entry> <entry key="k3">v3</entry>
Cheers, Wendell
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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 ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XML tags as map keys and , Eliot Kimber | Thread | [xsl] XSL ver. 2 to copy, replace, , Henry Dong |
Re: [xsl] output modified branch - , Martin Honnen | Date | Re: [xsl] output modified branch - , Wendell Piez |
Month |