Sha256: d7dc713787870a9e80b3eb0e653a1c070c4520d4531969531cbe3bf3c48a0b0c
Contents?: true
Size: 1.42 KB
Versions: 1
Compression:
Stored size: 1.42 KB
Contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> <title>load_document_proofsheets (XMLProof::Proofsheets)</title> <link rel=StyleSheet href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body bgcolor="white"> <pre><span class="cmt"># File proofsheet.rb, line 39</span> <span class="kw">def</span> load_document_proofsheets(xml_url) xml_document = REXML::Document.new(fetch_xml(xml_url)) xml_document.schema_instructions.each <span class="kw">do</span> |si| uri = si.attributes[<span class="str">'uri'</span>].downcase url = si.attributes[<span class="str">'url'</span>] <span class="cmt"># be sure we only get relavent schema types</span> <span class="kw">if</span> uri.downcase == <span class="str">"http://www.transami.net/namespace/xmlproof"</span> <span class="kw">if</span> is_relative?(url) relative_to_xml_url = File.dirname(xml_url) + <span class="str">'/'</span> + url <span class="kw">else</span> relative_to_xml_url = url <span class="kw">end</span> <span class="kw">self</span> << Proofsheet.new(relative_to_xml_url) <span class="kw">end</span> <span class="kw">end</span> <span class="kw">return</span> xml_document <span class="kw">end</span></pre> </body> </html>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mega-0.3.1 | pub/xml/xmlproof/rdoc/classes/XMLProof/Proofsheets.src/M000020.html |