RE: RE: [xsl] Problem with this XSLT - Help!!!!!

Subject: RE: RE: [xsl] Problem with this XSLT - Help!!!!!
From: Aitor San Juan <asanjuan@xxxxxxxxxxxxxx>
Date: Thu, 19 Feb 2004 08:55:06 +0100

Thanks all for your replies, specially to Tim Meals who had the exact
answer. Effectively, the problem was to enclose the parameter value both in
double quotes (") and in single quotes (').

So the working way of invoking Xalan is: java org.apache.xalan.xslt.Process
... -param ID "'U-05585'"

Thanks all for your support.

-----Mensaje original-----
De: Tim Meals [mailto:tim@xxxxxxxxxxxx]
Enviado el: miércoles, 18 de febrero de 2004 21:05
Para: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Asunto: Re: RE: [xsl] Problem with this XSLT - Help!!!!!


Try specifying your parameter with single quotes, or maybe escaping  
single quotes.  Xalan doesn't distinguish between string params like  
libxslt does.  Try one of the following:

java org.apache.xalan.xslt.Process ... -param ID 'U-05585'

-or-

java org.apache.xalan.xslt.Process ... -param ID "'U-05585'"

If your shell is interpreting the single quote characters.

Tim

On 02/18/04 09:35:13, cknell@xxxxxxxxxx wrote:
> As an educated guess, I believe that Xalan interprets the "-" in
> "U-05585" as the beginning of a new command-line switch. My first
> inclination is to quote the parameter's value on the command line,
> like this: -param ID "U-05585"
> --
> Charles Knell
> cknell@xxxxxxxxxx - email
> 
> 
> 
> -----Original Message-----
> From:     Joe Fawcett <joefawcett@xxxxxxxxxxx>
> Sent:     Wed, 18 Feb 2004 17:22:44 +0000
> To:       xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  RE: [xsl] Problem with this XSLT - Help!!!!!
> 
> >I'm using then following generic command in a shell script:
> >
> >		java org.apache.xalan.xslt.Process $1 $2 $3 $4 $5 $6
> $7 $8
> >$9
> >
> >java org.apache.xalan.xslt.Process -in /u/in.xml -xsl /u/find.xsl
> -out
> >/tmp/test.txt -param ID U-05585
> >
> Sorry, I'm not familiar with the command line syntax for that
> particular
> transformer, but obviously it does not work as expected as
> transforming with
> msxml gives the correct result. I'm sure someone else on the list can
> help
> though.
> 
> --
> Joe
> 
> _________________________________________________________________
> Tired of 56k? Get a FREE BT Broadband connection
> http://www.msn.co.uk/specials/btbroadband
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 
> 
> 
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> 
> 

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


************ LEGEZKO OHARRA / AVISO LEGAL / LEGAL ADVICE *************
Mezu honek isilpeko informazioa gorde dezake, edo jabea duena, edota legez
babestuta dagoena.
Zuri zuzendua ez bada, bidali duenari esan eta ezabatu, inori berbidali
edo gorde gabe,legeak debekatzen duelako mezuak erabiltzea baimenik gabe.
--------------------------------------------------------------------------
Este mensaje puede contener información confidencial, en propiedad o
legalmente protegida.
Si usted no es el destinatario, le rogamos lo comunique al remitente
y proceda a borrarlo, sin reenviarlo ni conservarlo, ya que su uso no 
autorizado está prohibido legalmente.
--------------------------------------------------------------------------
This message may contain confidential, proprietary or legally privileged
information.
If you are not the intended recipient of this message, please notify it to
the sender and delete without resending or backing it, as it is legally
prohibited.
************************************************************************** 



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


Current Thread