Project

Profile

Help

Bug #5031

closed

ixsl:set-property: ... not found for supplied object

Added by Martynas Jusevicius over 3 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Low
Category:
IXSL extensions
Sprint/Milestone:
-
Start date:
2021-06-28
Due date:
% Done:

100%

Estimated time:
Applies to JS Branch:
2
Fix Committed on JS Branch:
2
Fixed in JS Release:
SEF Generated with:
Platforms:
Company:
-
Contact person:
-
Additional contact persons:
-

Description

This might not be a bug, just me not understanding the error message.

I have the following code which usually works fine:

<xsl:message>AAAA $content-uri: <xsl:value-of select="$content-uri"/> empty(LDH): <xsl:value-of select="empty(ixsl:get(ixsl:window(), 'LinkedDataHub'))"/> empty(ac:new-object()): <xsl:value-of select="empty(ac:new-object())"/></xsl:message>
<ixsl:set-property name="{$content-uri}" select="ac:new-object()" object="ixsl:get(ixsl:window(), 'LinkedDataHub')"/>
<!-- store this content element -->
<xsl:message>BBBB</xsl:message>
<ixsl:set-property name="content" select="." object="ixsl:get(ixsl:get(ixsl:window(), 'LinkedDataHub'), $content-uri)"/>
<!-- store the initial SELECT query (without modifiers) -->
<xsl:message>CCCC</xsl:message>

However under some conditions I get this kind of error and I don't get why (includes the debug output):

xsl:message: AAAA $content-uri: https://noi.example.org/queries/default/select-children/#this empty(LDH): false empty(ac:new-object()): false
Warning ixsl:set-property: 'https://noi.example.org/queries/default/select-children/#this' not found for supplied object
xsl:message: BBBB
Warning ixsl:get: object property 'https://noi.example.org/queries/default/select-children/#this' not found
Uncaught J {message: "Required cardinality of value in 'ixsl:set-propert…xpression is exactly one; supplied value is empty", stack: "Error\n    at new J (https://noi.example.org/static…linkeddatahub/js/saxon-js/SaxonJS2.rt.js:819:457)", name: "XError", code: "XPTY0004", xsltLineNr: "583", …}

What am I missing here? What does the warning even mean?

Please register to edit this issue

Also available in: Atom PDF Tracking page