Project

Profile

Help

Bug #5673

closed

ixsl:set-property and URLs in property names

Added by Martynas Jusevicius almost 2 years ago. Updated over 1 year ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
IXSL extensions
Sprint/Milestone:
Start date:
2022-08-31
Due date:
% Done:

100%

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

Description

This is another manifestation of #5031. How do I set a property which is a QName with a URL in it? I need to construct the following:

SaxonJS.transform({
    "stylesheetParams": { "Q{https://www.w3.org/ns/ldt#}base": baseUri }
});

so I'm doing this:

<xsl:variable name="stylesheet-params" select="ldh:new-object()"/>
<ixsl:set-property name="Q{{https://www.w3.org/ns/ldt#}}base" select="$ldt:base" object="$stylesheet-params"/>

but of course I get an error:

Encountered null or undefined in path to nested object for ixsl:set-property: 'Q{https://www.w3'

If you will not consider removing special meaning of . in ixsl:set-property/@name (I get it's problematic due to backwards compatibility), can we at least get an option where this behavior is disabled? Because in situations like this it's a PITA.

Also welcoming suggestions for a workaround :)

Please register to edit this issue

Also available in: Atom PDF Tracking page