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 <[EMAIL PROTECTED]> 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="'//[EMAIL PROTECTED]' + APOS +appId +
> APOS + ']/[EMAIL PROTECTED]' + APOS + mk + APOS +
> ']/offer/@name'"/>
>
> Thanks!
>
> --- Rahul Akolkar <[EMAIL PROTECTED]> wrote:
>
> > On 5/25/06, Nestor Urquiza <[EMAIL PROTECTED]>
> > 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:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> >
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam
> protection around
> http://mail.yahoo.com
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
>
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]