Altova MapForce 2025 Enterprise Edition

Returns the namespace URI part of the QName value supplied as argument.

mf-func-namespace-uri-from-qname

 

Languages

Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.

 

Parameters

Name

Description

qname

Mandatory. Provides the function's input value.

 

Example

The following XML file contains a QName value, o:name. Note that the prefix "o" is mapped to the namespace http://NamespaceTest.com/Order.

 

<?xml version="1.0" encoding="utf-8"?>
<p:Purchase xsi:schemaLocation="http://NamespaceTest.com/Purchase Main.xsd"
        xmlns:p="http://NamespaceTest.com/Purchase"        
        xmlns:o="http://NamespaceTest.com/Order"        
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
        <p:Order>o:name</p:Order>
</p:Purchase>

 

A mapping that processes the QName value and gets the namespace URI is illustrated below:

mf-func-namespace-uri-from-qname-example

The output of this mapping is http://NamespaceTest.com/Order.

 

© 2018-2024 Altova GmbH