xsl-list
[Top] [All Lists]

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

2006-09-11 11:02:08
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(_dot_)bobp(_at_)gmail(_dot_)com

On 9/11/06, Michael Kay <mike(_at_)saxonica(_dot_)com> 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(_dot_)charade(_at_)gmail(_dot_)com]
> Sent: 11 September 2006 16:25
> To: xsl-list
> Subject: [xsl] 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
>
> --~------------------------------------------------------------------
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
> or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
> --~--
>


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>