/** * Prepare Stylesheet to render the analyzed XML data out. * This method can be overridden in a subclass to produce the output in a different format. */ /*@NotNull*/ protected PreparedStylesheet getStyleSheet() throws XPathException { InputStream in = getStylesheetInputStream(); StreamSource ss = new StreamSource(in, "profile.xsl"); CompilerInfo info = config.getDefaultXsltCompilerInfo(); info.setParameter(new StructuredQName("", "", "lang"), new StringValue(this.lang == Configuration.XSLT ? "XSLT" : "XQuery")); return Compilation.compileSingletonPackage(config, info, ss); }
/** * Prepare Stylesheet to render the analyzed XML data out. * This method can be overridden in a subclass to produce the output in a different format. */ /*@NotNull*/ protected PreparedStylesheet getStyleSheet() throws XPathException { InputStream in = getStylesheetInputStream(); StreamSource ss = new StreamSource(in, "profile.xsl"); CompilerInfo info = config.getDefaultXsltCompilerInfo(); info.setParameter(new StructuredQName("", "", "lang"), new StringValue(this.lang == Configuration.XSLT ? "XSLT" : "XQuery")); return Compilation.compileSingletonPackage(config, info, ss); }
try { CompilerInfo ci2 = new CompilerInfo(compilerInfo); PreparedStylesheet pss = Compilation.compileSingletonPackage(config, ci2, source); return new XsltExecutable(processor, pss); } catch (XPathException e) {
try { CompilerInfo ci2 = new CompilerInfo(compilerInfo); PreparedStylesheet pss = Compilation.compileSingletonPackage(config, ci2, source); return new XsltExecutable(processor, pss); } catch (XPathException e) {