function create_MD(dirs,titles,output_filename)
-
+
+ // Sort dirs and titles
+ my_mat = [titles,dirs];
+ my_mat(grep(my_mat(:,2),"/(.)*core(.)*/","r"),1) = "AAA_Scilab";
+ my_mat = gsort(my_mat,"lr","i");
+ my_mat(grep(my_mat(:,2),"/(.)*core(.)*/","r"),1) = "Scilab";
+ titles = my_mat(:,1);
+ dirs = my_mat(:,2);
+
master_document = ["<?xml version=""1.0"" encoding=""ISO-8859-1""?>"; ..
"<!DOCTYPE book [";
"<!--Begin Entities-->"];
-
+
xml_files = listfiles(dirs+"/*.xml");
master_document = [master_document; ..
"<!ENTITY "+basename(xml_files)+" SYSTEM """+xml_files+""">"];
// out = strsubst(out , "ยต" , "µ" );
endfunction
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-