oCurrentPage = this.page(sPageGUID);
oXMLFile = new File (sURI.startsWith("file://") ? sURI.substring(7) : sURI);
if (!oXMLFile.exists()) {
if (DebugFile.trace) DebugFile.decIdent();
throw new FileNotFoundException("PageSet.buildPageForEdit() File not found "+sURI);
}
oXMLStream = new FileInputStream(oXMLFile);
oStreamSrcXML = new StreamSource(oXMLStream);
// Asignar cada stream de salida a su stream temporal
oStrWritter = new StringWriter();
oStreamResult = new StreamResult(oStrWritter);
// Transformacion XSLT
try {
// Obtener la hoja de estilo desde el cache
sXSLFile = sBasePath + "xslt" + sSep + "templates" + sSep + oMSite.name() + sSep + oCurrentPage.template();
oXSLFile = new File (sXSLFile);
if (!oXSLFile.exists()) {
if (DebugFile.trace) DebugFile.decIdent();
throw new FileNotFoundException("PageSet.buildPageForEdit() File not found "+sXSLFile+" maybe there is a mismatch between the microsite name and the directory name where it is placed, or between the template name and the actual .xsl file name");
}
oTransformer = StylesheetCache.newTransformer(sXSLFile);
sMedia = oTransformer.getOutputProperty(OutputKeys.MEDIA_TYPE);