Class HTree::Context
In: htree/modules.rb
htree/context.rb
Parent: Object

Methods

Included Modules

HTree

Attributes

namespaces  [R] 

Public Class methods

The optional argument `namespaces’ should be a hash or nil. HTree::DefaultNamespaces is used if nil is specified.

If it is a hash, its key should be nil or a string. nil means default namespace. The string means some prefix which must not be empty.

The hash value should be a string. The empty string "" means unbound namespace.

Public Instance methods

return a namespace URI corresponding to prefix. It returns nil if prefix is not defined.

generate a new Context object which namespaces are substituted by a hash declared_namespaces.

[Validate]