Discussion:
[saxon] Getting the Namespace Context from a XdmNode to evaluate a QName value
Christophe Marchand
2017-04-03 08:55:10 UTC
Permalink
Hello !

I define parameters which can be typed, as in xslt :

<xsl:param name="..." as="..." value="..."/>

as is a QName, which can be noted as "xs:string"

Getting the @as value from XdmNode.getAttributeValue(), I want to
construct the QName, according to node's namespace context.

How can I get the namespace context from XdmNode ?
XdmNode.getUnderlyingNode().getNamespaceBinding(null) ?

Best regards,
Christophe
Michael Kay
2017-04-03 10:10:56 UTC
Permalink
You can do

new InscopeNamespaceResolver(xdmNode.getUnderlyingNode())

Michael Kay
Saxonica
Post by Christophe Marchand
Hello !
<xsl:param name="..." as="..." value="..."/>
as is a QName, which can be noted as "xs:string"
construct the QName, according to node's namespace context.
How can I get the namespace context from XdmNode ?
XdmNode.getUnderlyingNode().getNamespaceBinding(null) ?
Best regards,
Christophe
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
https://lists.sourceforge.net/lists/listinfo/saxon-help
Loading...