You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Marc Primozic <pr...@adtech.de> on 2002/05/16 19:43:26 UTC

AW: xalan-2.0.0 vs xalan-2.3.1 the parameter "-param" is not work ing in 2.3.1

Hello, 

this is working:

>java -cp
..\lib\xalan-2.0.0.jar;..\lib\xercesImpl.jar;..\lib\xml-apis.jar;..\lib\bsf.
jar;. org.apache.xalan.xslt.Process
-param mode fast -in output_xml\test_de.xml -xsl
c:\adtech_userdoku\xsl\userguide_xml2pdf.xsl -out test.fo


this not, where the only difference is the new xalan.jar in the classpath
(same for xalan-2.3.1, xalan-2.2.0, and the build latest build
xalan-j_20020516-bin):

>java -cp
..\lib\xalan.jar;..\lib\xercesImpl.jar;..\lib\xml-apis.jar;..\lib\bsf.jar;.
org.apache.xalan.xslt.Process -param
mode fast -in output_xml\test_de.xml -xsl
c:\adtech_userdoku\xsl\userguide_xml2pdf.xsl -out test.fo

Error:
userguide_xml2pdf.xsl; Line 68; Column 62;XSLT Error
(javax.xml.transform.TransformerConfigurationException):
javax.xml.transform.TransformerException:
org.apache.xml.utils.WrappedRuntimeException: 
Could not find variable with the name of mode

I also changed the name of the param from mode

thanks, I'm training to be a better mail-lister,
marc


RE: xalan-2.0.0 vs xalan-2.3.1 the parameter "-param" is not work ing in 2.3.1

Posted by Gary L Peskin <ga...@firstech.com>.
Do you have an <xsl:param name="mode"/> element at the top level of your
stylesheet to "receive" the mode parameter from the command line?

Gary

> -----Original Message-----
> From: Marc Primozic [mailto:primozic@adtech.de] 
> Sent: Thursday, May 16, 2002 10:43 AM
> To: Marc Primozic; 'David Marston/Cambridge/IBM'; 
> xalan-j-users@xml.apache.org
> Subject: AW: xalan-2.0.0 vs xalan-2.3.1 the parameter 
> "-param" is not work ing in 2.3.1
> 
> 
> Hello, 
> 
> this is working:
> 
> >java -cp
> ..\lib\xalan-2.0.0.jar;..\lib\xercesImpl.jar;..\lib\xml-apis.j
> ar;..\lib\bsf.
> jar;. org.apache.xalan.xslt.Process
> -param mode fast -in output_xml\test_de.xml -xsl 
> c:\adtech_userdoku\xsl\userguide_xml2pdf.xsl -out test.fo
> 
> 
> this not, where the only difference is the new xalan.jar in 
> the classpath (same for xalan-2.3.1, xalan-2.2.0, and the 
> build latest build
> xalan-j_20020516-bin):
> 
> >java -cp
> ..\lib\xalan.jar;..\lib\xercesImpl.jar;..\lib\xml-apis.jar;..\
> lib\bsf.jar;.
> org.apache.xalan.xslt.Process -param
> mode fast -in output_xml\test_de.xml -xsl 
> c:\adtech_userdoku\xsl\userguide_xml2pdf.xsl -out test.fo
> 
> Error:
> userguide_xml2pdf.xsl; Line 68; Column 62;XSLT Error
> (javax.xml.transform.TransformerConfigurationException):
> javax.xml.transform.TransformerException:
> org.apache.xml.utils.WrappedRuntimeException: 
> Could not find variable with the name of mode
> 
> I also changed the name of the param from mode
> 
> thanks, I'm training to be a better mail-lister,
> marc
>