[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: key definition

Subject: Re: key definition
From: Joerg Pietschmann <joerg.pietschmann@xxxxxx>
Date: Mon, 29 Oct 2001 12:40:15 +0100
re key definition
"Steve Renshaw" <renshaw_steve@xxxxxxxxxxx> wrote:

> Second question: What happens if I encounter markup that looks like
> this:
>    <item>
>     <data id="1">01</data>
>     <data id="10">1</data>
>    </item>
> in which case the usage of concat($id,$value) aliases into "101"

The usual trick is concat($id,':',$value) and a similar phrase in your
key, with a character for ':' which can't appear in either value or
is at least selected to avoid aliasing (sometimes, it is called the
guard character). You can of course substitute a longer string for ':'
to make aliasing more unlikely. Apart from this, XSLT is indeed
lacking a really robust mechanism for building keys from compositions.

HTH
J.Pietschmann

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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.