commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nestor Urquiza <nest...@yahoo.com>
Subject Re: [scxml] Data() xpath and the syntax
Date Fri, 26 May 2006 16:59:32 GMT
mmmh "foo's brother" + " is bar"  is invalid for jexl
as well ... still waiting for a response however just
for now your solution is valid but just trying to get
something more clear than having to add "APOS + var +
APOS" to create something like "'var'"


--- Nestor Urquiza <nestoru@yahoo.com> wrote:

> And I just posted the question to commons with
> subject
> [jexl] ... let us see what they respond I will post
> it
> back here. But basically:
> "foo's brother" + " is bar" this is how jexl would
> solvethe problem, however I do not know how to put
> something like that within the scxml
> thanks
> 
> --- Nestor Urquiza <nestoru@yahoo.com> wrote:
> 
> > One thing since already un the context you could
> > also
> > avoid 
> > <n:var name="apos" expr="APOS" /> 
> > 
> > and just use APOS like:
> > <n:var name="offerxpath"
> > expr="'//frontEndApplication[@name=' + APOS +appId
> +
> > APOS + ']/mk[@name=' + APOS + mk + APOS +
> > ']/offer/@name'"/>
> > 		
> > Thanks!
> > 
> > --- Rahul Akolkar <rahul.akolkar@gmail.com> wrote:
> > 
> > > On 5/25/06, Nestor Urquiza <nestoru@yahoo.com>
> > > wrote:
> > > > Yes I made a mistake there it is as you say a
> > node
> > > and
> > > > still fails in fact the problem is about "what
> > to
> > > do
> > > > to include an apostrophe or single quote?"
> > > >
> > > <snip/>
> > > 
> > > This is more of a JEXL question that a SCXML
> one.
> > > And I believe JEXL
> > > does not provide the escaping in string literals
> > > that is needed here.
> > > So define a APOS variable in the root context
> > (that
> > > holds the
> > > apostrophe) and use it as needed in string
> > > concatenation for
> > > generating the XPath query string i.e.
> > > rootCtx.set("APOS", "'")
> > > followed by (to obtain the result attempted
> > below):
> > > <n:var name="apos" expr="APOS" />
> > > 
> > > -Rahul
> > > 
> > > 
> > > > All the below produces an exception as well
> :-(
> > > >
> > > > <n:var name="apos" expr="\\'"/>
> > > > <n:var name="apos" expr="'"/>
> > > > <n:var name="apos" expr="\'"/>
> > > >
> > > <snap/>
> > > 
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > > commons-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > commons-user-help@jakarta.apache.org
> > > 
> > > 
> > 
> > 
> > __________________________________________________
> > 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
> > 
> > 
> 
> 
> __________________________________________________
> 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
> 
> 


__________________________________________________
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