Feature #4736
openAdd syntax for an external JavaScript object type
0%
Description
We should add a new XPath ItemType
for external JavaScript objects, so that type information for variables, etc. can be more specific than just item()
. e.g. for storing JavaScript objects returned from calling IXSL extension functions, and global JS functions. (And to avoid conversion to XDM types, where this would otherwise happen.)
Updated by Debbie Lockett over 4 years ago
- Assignee changed from Debbie Lockett to Michael Kay
Updated by Michael Kay over 4 years ago
For Java, the type of an external object of class org.package.ClassName
is
Q{http://saxon.sf.net/java-type}org.package.ClassName
(It can of course be written as a lexical QName with a prefix if preferred.)
For JavaScript, I think we should use a single QName for all external objects, and suggest the name
Q{http://saxon.sf.net/javascript-type}Object
The alphacode for an external Java object type is "X norg.package.ClassName"
. For JavaScript I think it can simply be "X".
Updated by Community Admin almost 4 years ago
- Applies to JS Branch 2 added
- Applies to JS Branch deleted (
2.0)
Updated by Norm Tovey-Walsh over 2 years ago
- Sprint/Milestone set to SaxonJS 3.0
Please register to edit this issue
Also available in: Atom PDF Tracking page