lib/rdf/rdfxml/reader.rb
# Extract Evaluation Context from an element by looking at ancestors recurively
Extract Evaluation Context from an element by looking at ancestors recurively
Extract Evaluation Context from an element by looking at ancestors recurively
def extract_from_ancestors(el, &cb)
        ancestors = el.ancestors
        while ancestors.length > 0
          a = ancestors.pop
          next unless a.element?
          extract_from_element(a, &cb)
        end
        extract_from_element(el, &cb)
      end
def extract_from_ancestors ( el , & cb ) ancestors = el . ancestors while ancestors . length > 0 a = ancestors . pop next unless a . element? extract_from_element ( a , & cb ) end extract_from_element ( el , & cb ) end
Extract Evaluation Context from an element by looking at ancestors recurively
Extract Evaluation Context from an element by looking at ancestors recurively
el
<not_specific>
cb
<not_specific>