/* Part 3 Section 6 Metadata Manifest File */
function write_rdf_type(file/*:string*/, res/*:string*/, tag/*:?string*/) {
return [
' \n',
' \n',
' \n'
].join("");
}
function write_rdf_has(base/*:string*/, file/*:string*/) {
return [
' \n',
' \n',
' \n'
].join("");
}
function write_rdf(rdf, opts) {
var o = [XML_HEADER];
o.push('\n');
for(var i = 0; i != rdf.length; ++i) {
o.push(write_rdf_type(rdf[i][0], rdf[i][1]));
o.push(write_rdf_has("",rdf[i][0]));
}
o.push(write_rdf_type("","Document", "pkg"));
o.push('');
return o.join("");
}