[Nitro] overriding Element.prefix
richard at protea-systems.com
Tue Aug 1 19:43:55 EDT 2006
Thanks, it's not too critical, I'll see if I can track it down... just
thought somebody might see something obvious which I'd missed.
George Moschovitis wrote:
> Hello Richard,
> to tell you the truth I haven't tested the prefix override recently.
> If you add this as a ticket
> on nitroproject.org I will have a look over it on first occasion.
> On 8/1/06, Richard Hundt <richard at protea-systems.com> wrote:
>> Hi List,
>> I'm trying to override the Element.prefix property (defaults to 'x').
>> I've tried:
>> require 'nitro'
>> require 'nitro/element'
>> include Nitro
>> Element.prefix = 'px'
>> require 'element/my_element.rb'
>> ...in my run.rb, to no avail. There's something about the sequence in
>> which the Elements::Listener::PREFIX_RE constant is defined which seems
>> to preclude changing the prefix at some point after the nitro libraries
>> are included. Does this sound right? Is there any way in which I could
>> add my own xml namespace?
>> Any ideas, suggestions or ridicule would be appreciated.
>> Nitro-general mailing list
>> Nitro-general at rubyforge.org
More information about the Nitro-general