Skip to content

XdmValue for vectors #11

Description

@akond

At the moment (sp/->xdmvalue [1 2 3]) throws

Execution error (IllegalArgumentException) at sigel.protocols/eval10142$fn (protocols.clj:64). No matching ctor found for class net.sf.saxon.s9api.XdmAtomicValue

which is weird.

But if I do

(extend-protocol sp/XMLValue
  PersistentVector
  (->xdmvalue [xdmvalue]
    (XdmValue/makeSequence xdmvalue)))

(sp/->xdmvalue [1 2 3]) works fine

=> #object [net.sf.saxon.s9api.XdmValue 0x30e4991a "1\n2\n3"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions