Actions
Bug #5031
closed![Author: Martynas Jusevicius](https://www.gravatar.com/avatar/9363833191184db890bcebbb35217441?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Debbie Lockett](https://www.gravatar.com/avatar/9c2ec304a5bec55af709863d87d5f6b7?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
ixsl:set-property: ... not found for supplied object
Start date:
2021-06-28
Due date:
% Done:
100%
Estimated time:
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
Actions
Also available in: Atom PDF Tracking page