Revision [1644]

This is an old revision of FunctionQName made by DavidLee on 2010-12-16 17:19:52.

 

Function QName


This function is part of the core function set.

Name

QName creates a QName object (The saxon Java object net.sf.saxon.s9api.QName)


Synopsis

QName( localname )
QName( uri localname )
QName( prefix uri localname )


Description

Creates a QName object with one of the three above constructors.
This can be used to pass QNames directly to xquery or <[ ]> or stax:hasNext or any function or command that expects a QName literal.

QName variables can be inspected by using the function call syntax.


Example
q=QName( prefix http://foo.bar local )
echo $q
echo q.getPrefix()
echo q.getLocalName()
echo q.getNamespaceURI()


Result
prefix:local
prefix
local
http://foo.bar




Commands
Functions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki