[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xsl-list
Subject:    Re: [xsl] How to move the namespaces onto the root element when there is a namespace prefix that is
From:       Wendell Piez <wapiez () wendellpiez ! com>
Date:       2013-01-14 18:10:59
Message-ID: CAAO_-xwEEz9vjXcm66EqTMV9MPNP7Ct9xibAq1AEH1=tbmhvMw () mail ! gmail ! com
[Download RAW message or body]

Hi,

Also, to detect namespace-related anomalies and normalize namespace usage:

https://github.com/wendellpiez/XMLNamespaceFixup

Cheers,
Wendell

On Mon, Jan 14, 2013 at 1:24 AM, Dimitre Novatchev <dnovatchev@gmail.com> wrote:
>> 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))
>>
>
> Oh, I see... So this is why we have node-name() in addition to name().
>
> Thank you, Phil.
>
>
>
>
> On Sun, Jan 13, 2013 at 2:01 PM, Philip Fearon <pgfearo@googlemail.com> wrote:
>> On Sun, Jan 13, 2013 at 8:31 PM, Dimitre Novatchev <dnovatchev@gmail.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@lists.mulberrytech.com>
>> --~--
>>
>
>
>
> --
> Cheers,
> Dimitre Novatchev
> ---------------------------------------
> Truly great madness cannot be achieved without significant intelligence.
> ---------------------------------------
> To invent, you need a good imagination and a pile of junk
> -------------------------------------
> Never fight an inanimate object
> -------------------------------------
> To avoid situations in which you might make mistakes may be the
> biggest mistake of all
> ------------------------------------
> Quality means doing it right when no one is looking.
> -------------------------------------
> You've achieved success in your field when you don't know whether what
> you're doing is work or play
> -------------------------------------
> Facts do not cease to exist because they are ignored.
> -------------------------------------
> Typing monkeys will write all Shakespeare's works in 200yrs.Will they
> write all patents, too? :)
> -------------------------------------
> I finally figured out the only reason to be alive is to enjoy it.
>
> --~------------------------------------------------------------------
> 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@lists.mulberrytech.com>
> --~--
>



-- 
Wendell Piez | http://www.wendellpiez.com
XML | XSLT | electronic publishing
Eat Your Vegetables
_____oo_________o_o___ooooo____ooooooo_^

--~------------------------------------------------------------------
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@lists.mulberrytech.com>
--~--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic