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

Re: Keyword xsl:key may not be used here.

Subject: Re: Keyword xsl:key may not be used here.
From: "Bob Portnell" <simply.bobp@xxxxxxxxx>
Date: Mon, 11 Sep 2006 11:01:49 -0700
Re:  Keyword xsl:key may not be used here.
One thing I remember being gobsmacked by is finding that the
definitions I put into the <xsl:key> statement basically had little
relationship to the place or purpose I intended for the key() function
later. So, the <xsl:key> definition goes as a child element of the
<xsl:stylesheet>, but the key() function to call it can be anywhere
(and can refer to it in any context, with the 3rd argument available
in XSLT2).

Very neat.

Bob Portnell
simply.bobp@xxxxxxxxx

On 9/11/06, Michael Kay <mike@xxxxxxxxxxxx> wrote:
You can't use xsl:key inside a template.

Why do you want to?

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Jaebin Lee [mailto:jaebin.charade@xxxxxxxxx]
> Sent: 11 September 2006 16:25
> To: xsl-list
> Subject:  Keyword xsl:key may not be used here.
>
> Hi,
>
> Im' trying to use <xsl:key> inside of a template, it always
> gives an error saying "Keyword xsl:key may not be used here."
>
> Is it just impossible to use key inside of a template?
> Why is this error cause?
>
> -Jaebin

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.