commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nest...@yahoo.com>
Subject [scxml] Data() xpath and the syntax
Date Thu, 25 May 2006 17:46:09 GMT
Hello guys,
I am trying to assign to a variable "offer" a given
information I have in my settings file (which is
already in the datamodel). 

I have two variables "appId" and "mk" which I have
already in the rootContext and are related to the
offer by the following xpath:

xpath to evaluate which returns the needed value if I
use just an xpath utility:
//frontEndApplication[@name='SplashPage1OfClient1']/mk[@name='MK4ParticularCreativeOfSplashPage1OfClient1']/offer/@name

of course appId='SplashPage1OfClient1' and
mk='MK4ParticularCreativeOfSplashPage1OfClient1'

So using Data('bubp', xpath) fails in the two cases
below ...

1)I obtain empty string for:
<n:var name="offerxpath"
expr="'//frontEndApplication[@name=' + appId +
']/mk[@name=' +  mk + ']/offer/@name'"/>

2)I obtain an EXPRESSION_ERROR for:
<n:var name="offerxpath"
expr="'//frontEndApplication[@name=' + '\\'' +appId +
'\\'' + ']/mk[@name=' + '\\'' + mk + '\\'' +
']/offer/@name'"/>

or using just one slash as well for the second case.

Can any of you tell me how am I supposed to put the
original xpath string in the Data() function for it to
interprets correctly the xpath?

Thanks!,
Nestor 




__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message