[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xalan and replace "regex"
Abel, I do not agree with you about the classpath thing. I have checked my classpath many times. I followed your advice about using saxon9.jar directly on the command line. It worked fine, then I changed to a different directory where I have some test files and did this: [mansour@mars xslt-test]$ java net.sf.saxon.Transform -s:test-file.xml -xsl:sheet.xsl -o:out.xml and it worked fine as well, so the classpath is ok, but then why would it work with the jar on the command line : java -jar /opt/Programs/saxon9/saxon9.jar -s:index.xml -xsl:/opt/docbook/fo/docbook.xsl -o:book.fo Warning: at xsl:stylesheet on line 8 of file:/opt/docbook/fo/docbook.xsl: Running an XSLT 1.0 stylesheet with an XSLT 2.0 processor Warning: on line 337 of file:/opt/docbook/common/stripns.xsl: The attribute axis starting at a document node will never select anything Making portrait pages on USletter paper (8.5inx11in) This is very confusing, I don't know what is going on. Here's my classpath: echo $CLASSPATH /opt/jdk/lib/dt.jar:/opt/jdk/lib/jconsole.jar:/opt/jdk/lib/sa-jdi.jar:/opt/jd k/lib/htmlconverter.jar:/opt/jdk/lib/tools.jar:/opt/jdk/lib/:/opt/tomcat/comm on/lib/servlet-api.jar:.:/opt/J2EE/lib/j2ee.jar:.::/opt/jdk/lib/xml-apis.jar: /opt/jdk/lib/xercesImpl.jar:/opt/jdk/lib/xalan.jar:/opt/jdk/lib/jconsole.jar: /opt/jdk/lib/tools.jar:/opt/jdk/lib/serializer-2.7.0.jar:/opt/jdk/lib/xsltc.j ar:/opt/jdk/lib/serializer.jar:/opt/jdk/lib/sa-jdi.jar:/opt/jdk/lib/xercesImp l-2.7.1.jar:/opt/jdk/lib/fop.jar:/opt/jdk/lib/xmlgraphics-commons-1.2.jar:/op t/jdk/lib/commons-logging-1.0.4.jar:/opt/jdk/lib/xslthl.jar:/opt/jdk/lib/xml- apis-1.3.02.jar:/opt/jdk/lib/dt.jar:/opt/jdk/lib/avalon-framework-4.2.0.jar:/ opt/jdk/lib/htmlconverter.jar:/opt/jdk/lib/batik-all-1.6.jar:/opt/jdk/lib/xal an-2.7.0.jar:/opt/jdk/lib/commons-io-1.3.1.jar:.::/opt/jdk/lib/xml-apis.jar:/ opt/jdk/lib/xercesImpl.jar:/opt/jdk/lib/xalan.jar:/opt/jdk/lib/jconsole.jar:/ opt/jdk/lib/tools.jar:/opt/jdk/lib/serializer-2.7.0.jar:/opt/jdk/lib/xsltc.ja r:/opt/jdk/lib/serializer.jar:/opt/jdk/lib/sa-jdi.jar:/opt/jdk/lib/xercesImpl -2.7.1.jar:/opt/jdk/lib/fop.jar:/opt/jdk/lib/xmlgraphics-commons-1.2.jar:/opt /jdk/lib/commons-logging-1.0.4.jar:/opt/jdk/lib/xslthl.jar:/opt/jdk/lib/xml-a pis-1.3.02.jar:/opt/jdk/lib/dt.jar:/opt/jdk/lib/avalon-framework-4.2.0.jar:/o pt/jdk/lib/htmlconverter.jar:/opt/jdk/lib/batik-all-1.6.jar:/opt/jdk/lib/xala n-2.7.0.jar:/opt/jdk/lib/commons-io-1.3.1.jar:/opt/java_lib/weka-src.jar:/opt /java_lib/saxon9/saxon9-xqj.jar:/opt/java_lib/saxon9/saxon9-dom4j.jar:/opt/ja va_lib/saxon9/saxon9-sql.jar:/opt/java_lib/saxon9/saxon9-xpath.jar:/opt/java_ lib/saxon9/saxon9-ant.jar:/opt/java_lib/saxon9/saxon9-xom.jar:/opt/java_lib/s axon9/saxon9-s9api.jar:/opt/java_lib/saxon9/saxon9.jar:/opt/java_lib/saxon9/s axon9-jdom.jar:/opt/java_lib/saxon9/saxon9-dom.jar You can easily see at the end all the jars from saxon9 !! Abel Braaksma wrote: Mansour wrote:Ok, look, I have a somewhat big docbook files. I have been using xalan to process them. I have just tried with saxon9 and the processing failed with this message: net.sf.saxon.functions.JavaExtensionLibrary.bind(JavaExtensionLibrary.java:30 1) net.sf.saxon.functions.FunctionLibraryList.bind(FunctionLibraryList.java:83)
net.sf.saxon.expr.ExpressionParser.parseFunctionCall(ExpressionParser.java:18 40) net.sf.saxon.expr.ExpressionParser.parseBasicStep(ExpressionParser.java:1324)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|