Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7006303
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T21:27:38+00:00 2026-05-27T21:27:38+00:00

In a key element, it is an error for the value of either the

  • 0

In a key element, it is an error for the value of either the use attribute or the match attribute to contain a variable reference.

But can the use attribute or the match attribute contain a key() function?

This seems allowed, but it would only make sense if key elements are executed in document order in the stylesheet. Is that guaranteed?

(If this does indeed work, then one could sometimes use a key() function within a use or match to do the job that a disallowed global variable would do.)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T21:27:38+00:00Added an answer on May 27, 2026 at 9:27 pm

    But can the use attribute or the match attribute contain a key()
    function?

    In XSLT 1.0 both of these are errors.

    From the W3C Errata to the XSLT 1.0 Specification:

    E13 – Substantive.

    Section 12.2, eighth paragraph. Calls to the key function in match and
    use attributes on xsl:key elements may cause cycles. See
    http://lists.w3.org/Archives/Member/w3c-xsl-wg/2000Jun/0048.html
    (members only).

    It is an error for the value of either the use attribute or the match
    attribute to contain a VariableReference, or a call to the key
    function

    In XSLT 2.0 the use of the key() function in these places is allowed, provided that a key is not defined in terms of itself (no circular references in definitions are allowed).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can bind a jquery event to this element like: <script type=text/javascript> $('#new_key').ready(function() {
Given the key for some registry value (e.g. HKEY_LOCAL_MACHINE\blah\blah\blah\foo) how can I: Safely determine
I have an object of type element and this has an attribute of type
I haven't been able to find anything about this value error online and I
How do I get the key of the current element in a foreach loop
Possible Duplicate: In PHP, how do you change the key of an array element?
With tables basically like this: Elements id INT PRIMARY KEY ... Observations id INT
Ruby 1.9 has a few new syntax elements, such as the {key: value} hash
Request[key] vs Request.Params[key] vs Request.QueryString[key] Which method do you seasoned programmers use? and why?
I have this simple loop in my program: for (Element *e in items) {

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.