Skip to content

Commit 685bc8b

Browse files
committed
xslt
1 parent 74be8b2 commit 685bc8b

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/main/java/edu/harvard/iq/dataverse/export/ddi/DdiExportUtil.java

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,13 +2123,7 @@ private static boolean checkParentElement(XMLStreamWriter xmlw, String elementNa
21232123

21242124
public static void datasetPdfDDI(InputStream datafile, OutputStream outputStream) throws XMLStreamException {
21252125
try {
2126-
//File xsltfile = new File("/home/victoria/fop-2.8/fop/ddi-to-fo.xsl");
2127-
//URL resource = DdiExportUtil.class.getResource("edu/harvard/iq/dataverse/ddi-to-fo.xsl");
2128-
//File xsltfile = new File(resource.toURI());
21292126
InputStream styleSheetInput = DdiExportUtil.class.getClassLoader().getResourceAsStream("edu/harvard/iq/dataverse/ddi-to-fo.xsl");
2130-
logger.info("start datasetPdfDDI");
2131-
//InputStream xsltfile = DdiExportUtil.class.getClassLoader().getResourceAsStream(
2132-
// "edu/harvard/iq/dataverse/from-ddi-2.5/ddi-to-fo.xsl");
21332127

21342128
final FopFactory fopFactory = FopFactory.newInstance(new File(".").toURI());
21352129
FOUserAgent foUserAgent = fopFactory.newFOUserAgent();
@@ -2153,7 +2147,6 @@ public static void datasetPdfDDI(InputStream datafile, OutputStream outputStream
21532147
transformer.transform(src, res);
21542148

21552149
} catch (Exception e) {
2156-
logger.info("First try");
21572150
logger.severe(e.getMessage());
21582151
}
21592152
} catch (Exception e) {

0 commit comments

Comments
 (0)