xsl-list
[Top] [All Lists]

RE: RE: Problem with this XSLT - Help!!!!!

2004-02-19 00:55:06


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(_at_)codeknox(_dot_)com]
Enviado el: miércoles, 18 de febrero de 2004 21:05
Para: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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(_at_)onebox(_dot_)com 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(_at_)onebox(_dot_)com - email



-----Original Message-----
From:     Joe Fawcett <joefawcett(_at_)hotmail(_dot_)com>
Sent:     Wed, 18 Feb 2004 17:22:44 +0000
To:       xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
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



<Prev in Thread] Current Thread [Next in Thread>