Re: Error...

Subject: Re: Error...
From: Cheun N Chong <cnc99r@xxxxxxxxxxxxxxx>
Date: Wed, 24 May 2000 22:23:35 +0100 (BST)
HI Jeni and all

	Sorry it is me again... The e-mail that Jeni sent me, with all the
codes (very kind of her) which is working well not only with SAXON and
also with LotusXSL. However I have a possible off-topic question about the
XSLT processor. When I run the following script on the prompt, it is
working:

~~> java -classpath
.:/home/cnc99r/xml/XML4J_3_0_1/xerces.jar:/home/cnc99r/xml/lotusxsl_1_0_0/lotusxsl.jar:/home/cnc99r/xml/lotusxsl_1_0_0/xalan.jar
org.apache.xalan.xslt.Process -in stuffs.xml -xsl stuffs.xsl -param expire
"'10 May 2000'" -out out.xml

	However I have tried to create a script file which is like
follows (called it xmlxsl):

java -classpath
.:/home/cnc99r/xml/XML4J_3_0_1/xerces.jar:/home/cnc99r/xml/lotusxsl_1_0_0/lotusxsl.jar:/home/cnc99r/xml/lotusxsl_1_0_0/xalan.jar
org.apache.xalan.xslt.Process $*

	And run it on the prompt:

~~> xmlxsl -in stuffs.xml -xsl stuffs.xsl -param expire "'10 May
2000'" -out out1.xml

	And the following errors happened:

Invalid option: May
Invalid option: 2000'
========= Parsing file:/home/cnc99r/Project/XML/stuff/stuffs.xsl
==========
Parse of file:/home/cnc99r/Project/XML/stuff/stuffs.xsl took 3132
milliseconds
========= Parsing stuffs.xml ==========
Parse of stuffs.xml took 253 milliseconds
=============================
Transforming...
XSL Error: pattern = ''10'
misquoted literal... expected single quote!, style tree
node: org.apache.xalan.xslt.StylesheetRoot@83b3c7da
Xalan: was not successful.
XSLProcessor: done

	I wish some of you could possibly help me (perhaps give me some
idea) of scripting... Thousand thanks and wish this is not an off-topic
question.

Best regards,
Cheun Ngen CHONG



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread