.. _qName: ===== qName ===== Constructs a QName from a namespace and local part Description ~~~~~~~~~~~ The fn:QName function takes a namespace URI and a qualified (optionally prefixed) name as arguments, and constructs a QName value from them. If $paramQName is prefixed, that prefix is retained in the resulting xs:QName value. Unlike the xs:QName constructor, the fn:QName function does not require a literal argument. Therefore, the name could be the result of a dynamically evaluated expression. .. list-table:: :widths: 40 60 :header-rows: 1 * - **Parameters** - **Description** * - paramURI:string() - * - paramQName:string() - Examples ~~~~~~~~ .. list-table:: :widths: 50 50 :header-rows: 1 * - **XPath** - **Results** * - QName('http://datypic.com/prod','product') - A QName whose namespace is http://datypic.com/prod, whose prefix is empty, and whose local part is product * - QName('http://datypic.com/prod', 'pre:product') - A QName whose namespace is http://datypic.com/prod, whose prefix is pre, and whose local part is product * - QName('', 'product') - A QName whose namespace is empty, whose prefix is empty, and whose local part is product * - QName('', 'pre:product') - Error FOCA0002 See Also ~~~~~~~~ .. toctree:: :titlesonly: :glob: * :ref:`resolve-QName`. * :ref:`local-name-from-QName`.