Remember that the parameter is an XPath _expression_, so in your case, the
value of param1 will be a node set that contains all nodes that would be
selected by the XPath expression "temp".  If you want the string literal
'temp', you need to enclose it in single quotes:

   testXSLT -IN foo.xml -XSL foo.xsl -OUT foo.out -PARAM param1 'temp'

In addition, from the command line, you generally need to enclose the
expression in double quotes, to prevent the shell from interpreting the '
characters:

   testXSLT -IN foo.xml -XSL foo.xsl -OUT foo.out -PARAM param1 "'temp'"

This is discussed in the documentation.  Please verify that you are doing
this correctly.

Dave



                                                                                       
                     
                    "Avula, Raj"                                                       
                     
                    <RAvula@first        To:     "'[EMAIL PROTECTED]'" 
<[EMAIL PROTECTED]>    
                    am.com>              cc:     (bcc: David N Bertoni/CAM/Lotus)      
                     
                                         Subject:     RE: using Stylesheet Param with 
Pre-parsed            
                    08/29/2001           stylesheet(xalan c++ ) .                      
                     
                    05:21 PM                                                           
                     
                    Please                                                             
                     
                    respond to                                                         
                     
                    xalan-dev                                                          
                     
                                                                                       
                     
                                                                                       
                     




Thanks Dave. I tried with foo.xsl, foo.xml files supplied with
UseStylesheetParam sample.
I can see the same problem. I tried with testXSLT also using following
command
testXSLT -IN foo.xml -XSL foo.xsl -OUT foo.out -PARAM param1 temp
I have entered bug.

Thanks,
Raj.

> -----Original Message-----
> From:         [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent:         Wednesday, August 29, 2001 12:26 PM
> To:           [EMAIL PROTECTED]
> Subject:           Re: using Stylesheet Param with Pre-parsed
stylesheet(xalan
> c++ ).
>
>
> You would set the parameter on the XalanTransformer instance which is
> actually going to perform the transformation.  This may be a bug in
> XalanTransfomer, or a bug in your stylesheet.
>
> You should try testing your stylesheet with the testXSLT command line
> program to see if it works as expected.  If it does, then please file a
> bug
> report, and attach a minimal stylesheet and source xml file, along with a
> minimal code snippet that reproduces the problem.
>
> Dave
>
>
>
>
>
>                     "Avula, Raj"
>
>                     <RAvula@first        To:
> "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>                     am.com>              cc:     (bcc: David N
> Bertoni/CAM/Lotus)
>                                          Subject:     using Stylesheet
> Param with Pre-parsed
>                     08/29/2001           stylesheet(xalan c++).
>
>                     02:42 PM
>
>                     Please
>
>                     respond to
>
>                     xalan-dev
>
>
>
>
>
>
>
>
>
> Hi,
>            I want to basically pass a paramter to stylesheet.
> In my Application, I am using a global XalanTransformer class to parse
the
> stylesheet,
> and another XalanTransformer calss for the actual transformation by
> reusing
> the XalanCompileStylesheet.
> My Problem here is on which instance of XalanTransformer should I be
> calling
> setStylesheeParam() mehtod.
> I tried both the cases. Stylesheet is not able to recieve parameters in
> both
> the cases.
> Can any body tell me what is going wrong here.
>
>
> Thanks,
> Raj.
>
>
>
>
>





Reply via email to