[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
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
|