xsl-list
[Top] [All Lists]

Re: [xsl] How to move the namespaces onto the root element when there is a namespace prefix that is bound to different namespaces?

2013-01-13 16:02:06
On Sun, Jan 13, 2013 at 8:31 PM, Dimitre Novatchev 
<dnovatchev(_at_)gmail(_dot_)com> wrote:

I wanted to use the function:

    prefix-from-QName()

however it requires an xs:QName as argument and an xs:QName
constructor only accepts *literal* strings as arguments.

The question arizes then: What is the above function useful for?

The prefix-from-QName() function can be useful when used in
combination with the node-name($arg as node()?) function that returns
a QName from the node passed as a parameter (or just the context node
in XPath 3.0) to the function. So, for example, you could use:

prefix-from-QName(node-name($node))

-----
Phil

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--