[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: [newbie] Mapping a Map 101?
On Dec 13, 2004, at 15:11, Michael Kay wrote: >>> I wouldn't rely on sibling relationships. >> >> Ok. Why would relying on such relationships be a "bad" thing though? >> What are the benefits of introducing an <entry> tag in the <dict> >> structure? > > It makes the processing code much more clear. I see. Make sense. Thanks for the clarification :) > Compare > > <xsl:value-of select="entry[key=$p]/value"/> > > To > > <xsl:value-of select="key[.=$p]/following-sibling::*[1]"/> Out of curiosity, if <dict> was simply defined as an ordered sequence of elements, where the even elements are the keys and the odd elements the values, how would the XQuery look like? Thanks! Cheers, PA.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|