# File proofsheet.rb, line 39 def load_document_proofsheets(xml_url) xml_document = REXML::Document.new(fetch_xml(xml_url)) xml_document.schema_instructions.each do |si| uri = si.attributes['uri'].downcase url = si.attributes['url'] # be sure we only get relavent schema types if uri.downcase == "http://www.transami.net/namespace/xmlproof" if is_relative?(url) relative_to_xml_url = File.dirname(xml_url) + '/' + url else relative_to_xml_url = url end self << Proofsheet.new(relative_to_xml_url) end end return xml_document end