Re: Some Issues while testing

Martin Klang <[email protected]> Thu, 17 Jul 2003 22:20:02 +0000 (GMT)
Newsgroups gmane.text.xml.o-xml
Message-ID <[email protected]>
Glen,

I'll start off with two quick answers:

1) all whitespace in parameter values must be escaped or else the values
must be quoted. This is in passing params to the java interpretor, not
just the shell script! Both the script and the interpretor will try to
split params at spaces, so you might have to quote the values twice. Try
something like:

#!/bin/sh
update=1/1/199
date=1/1/2004
title="A New Blog"
body="The Blog Body"
img=image999.jpg

java org.oXML.engine.ObjectBox test.oml "-DlastUpdate=$update" "-DblogDate=$date" "-DblogBody=$body" "-DblogImageLink=$img" "-DblogTitle=$title"

note the quotes around the shell variable values, and then again when
passing them to the interpretor. in the above you could replace eg title
and body with

title=$1
body=$2

and then invoke the script:

test.sh "A New Blog" "The Blog Body"

the first quoted string will be $1, the second $2 etc


2) The functions insertBefore() and insertAfter() didn't make it into the
build. sorry about that. i've added them in now, they'll be in cvs.


i'll look into 3/4/5 just now.


/m

Martin Klang
http://www.o-xml.org - the object-oriented XML programming language