String workPath = getSettings().workPath;
FileAccess fa = new FileAccess(xmsf);
String stylesheetPath = fa.getURL(getSettings().workPath,"layouts/"+ cp_FSName);
String[] files = fa.listFiles(stylesheetPath,false);
for (int i = 0; i<files.length; i++)
if (FileAccess.getExtension(files[i]).equals("xsl"))
templates.put(FileAccess.getFilename(files[i]), tf.newTemplates( new StreamSource(files[i]) ));