dleslie 99/12/13 11:54:41
Modified: docs Stylebook.java
Log:
Removed temporary version of processWithParams(String, String, String,
String) that was required due to bug that has been fixed.
Revision Changes Path
1.5 +1 -25 xml-xalan/docs/Stylebook.java
Index: Stylebook.java
===================================================================
RCS file: /home/cvs/xml-xalan/docs/Stylebook.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Stylebook.java 1999/11/11 19:48:34 1.4
+++ Stylebook.java 1999/12/13 19:54:41 1.5
@@ -98,29 +98,6 @@
}
}
- // Temporary - Use alphaworks version to process body source files until
apache version supports
- // entity refs in the dtd.
- static void processWithParam(String xmlurl, String xslurl, String
paramExpr, String outFileName)
- throws Exception
- {
- try
- {
- System.out.println(" process(2) start with " + paramExpr + " to " +
outFileName);
- XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
- processor.setStylesheetParam("curid", paramExpr);
- processor.setDiagnosticsOutput(System.out);
- processor.process(new XSLTInputSource(xmlurl),
- new XSLTInputSource(xslurl),
- new XSLTResultTarget(outFileName));
- System.out.println(" process(2) with " + paramExpr + " complete to "
+ outFileName);
- }
- catch (Exception e)
- {
- e.printStackTrace();
- }
- }
-
-
public static void main(String[] argv)
throws java.io.IOException, java.net.MalformedURLException,
org.xml.sax.SAXException
{
@@ -205,8 +182,7 @@
String paramExpr = "'" + id + "'";
htmlTarget = new XSLTResultTarget(bodyTarget);
-// broken processWithParam(body, xslBody, paramExpr, htmlTarget);
- processWithParam(bodySource, styleDir + "body.xsl", paramExpr,
bodyTarget);
+ processWithParam(body, xslBody, paramExpr, htmlTarget);
htmlTarget = new XSLTResultTarget(sideTarget);
processWithParam(book, xslSide, paramExpr, htmlTarget);