Error 'Cannot select a node here' in for-each with global variables in XSLT/XSL-FO Posted February 20, 2014 Hello, My stylesheet failed to compile for this error: XPTY0020: Cannot select a node here: the context item is an atomic value at this line: <xsl:when test="$event[substring-before(start/datetime, 'T')=$dateJour]"> Here is all the code of the template: http://pastebin.com/fmPUHGpR. The error is on line 20. Yesterday, I search on a lot of websites and forums who says to put a global variable outside the for-each. $event is a global variable. I try to put event/start/datetime in a global variable but I still have the error. Could you please help me?
Error 'Cannot select a node here' in for-each with global variables
in XSLT/XSL-FO
Posted
Hello,
My stylesheet failed to compile for this error: XPTY0020: Cannot select a node here: the context item is an atomic value at this line:
Here is all the code of the template: http://pastebin.com/fmPUHGpR. The error is on line 20.
Yesterday, I search on a lot of websites and forums who says to put a global variable outside the for-each. $event is a global variable. I try to put event/start/datetime in a global variable but I still have the error.
Could you please help me?