Project

Profile

Help

Bug #3384

closed

Context item for attribute axis step says it's missing when it should not be

Added by Priscilla Walmsley over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Internals
Sprint/Milestone:
-
Start date:
2017-08-10
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
9.8
Fixed in Maintenance Release:
Platforms:

Description

This query:

xquery version "3.0";

let $prods := doc("catalog.xml")//product

for $prod in $prods

where $prod << $prods[@dept = $prod/@dept][last()]

return $prod

returns:

XPDY0002: The context item for axis step attribute::attribute(Q{}dept) is absent

This query used to work on previous versions of Saxon.


Files

catalog.xml (580 Bytes) catalog.xml Priscilla Walmsley, 2017-08-10 21:49
context-error.xq (189 Bytes) context-error.xq Priscilla Walmsley, 2017-08-10 21:49

Please register to edit this issue

Also available in: Atom PDF