From 87caa1be9d1f1ba1fecb34bffceb00911feb3dc3 Mon Sep 17 00:00:00 2001 From: "Andrew C. Oliver" Date: Sun, 17 Mar 2002 00:49:35 +0000 Subject: [PATCH] should get us sstarted on HDF now! Horay... git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352239 13f79535-47bb-0310-9956-ffa450edef68 --- src/java/org/apache/poi/dev/RecordGenerator.java | 7 ++----- src/types/styles/hdftype.xsl | 2 +- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/java/org/apache/poi/dev/RecordGenerator.java b/src/java/org/apache/poi/dev/RecordGenerator.java index 4c7a3da1f6..2c57189a14 100644 --- a/src/java/org/apache/poi/dev/RecordGenerator.java +++ b/src/java/org/apache/poi/dev/RecordGenerator.java @@ -93,7 +93,6 @@ public class RecordGenerator ) ) { - System.out.println(file.getAbsolutePath()); // Get record name and package DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); @@ -101,10 +100,7 @@ public class RecordGenerator Document document = builder.parse(file); Element record = document.getDocumentElement(); String extendstg = record.getElementsByTagName("extends").item(0).getFirstChild().getNodeValue(); - System.out.println("extends" + record.getElementsByTagName("extends").getLength()); - System.out.println("extends" + record.getElementsByTagName("extends").item(0).toString()); String suffix = record.getElementsByTagName("suffix").item(0).getFirstChild().getNodeValue(); - System.out.println("suffix" + record.getElementsByTagName("suffix").getLength()); String recordName = record.getAttributes().getNamedItem("name").getNodeValue(); String packageName = record.getAttributes().getNamedItem("package").getNodeValue(); packageName = packageName.replace('.','/'); @@ -117,8 +113,9 @@ public class RecordGenerator String args[] = new String [] { "-in", file.getAbsolutePath(), "-xsl", recordStyleDir + "/" + extendstg.toLowerCase() + ".xsl", "-out", destinationFilepath, "-TEXT"}; + org.apache.xalan.xslt.Process.main( args ); - System.out.println("Generated record: " + destinationFilepath); + System.out.println("Generated "+suffix+": " + destinationFilepath); // Generate test (if not already generated) destinationPath = testSrcPathDir + "/" + packageName ; diff --git a/src/types/styles/hdftype.xsl b/src/types/styles/hdftype.xsl index b284315d93..de07f12f90 100644 --- a/src/types/styles/hdftype.xsl +++ b/src/types/styles/hdftype.xsl @@ -76,7 +76,7 @@ import org.apache.poi.util.HexDump; */ public class Type - extends HDFType + implements HDFType { public final static short sid = ; private ;