Re: Namelist continued
Jon Kerny <[email protected]> Sat, 26 Sep 2015 18:16:53 +0200
| Newsgroups | gmane.comp.web.voice |
|---|---|
| Message-ID | <CAC5YMgFO5TOk544xsT5psKwe+J5trgRH0ajTE3zuZJ=Wd1i9ow@mail.gmail.com> |
--001a11427aeedae6ab0520a8ca89 Content-Type: text/plain; charset=UTF-8 Hi, thanks for the clarification. I think that part of my confusion came from that it wasn't useful in the xpath model and thus it didn't make sense to me, and I felt that there was something I didn't understand. Thanks. /Jon On Sat, Sep 26, 2015 at 5:58 PM, Jim Barnett <[email protected]> wrote: > One further thought on the XPath data model and namelist. The XPath data > model _could_ be modified to say "for the purposes of passing a namelist > into invoke, the namelist attribute '$foo' shall be considered to match > <data id="foo"/>. We didn't do that, because we didn't expect 'namelist' > to be useful everywhere. However, the XPath data mode is not part of the > final specification, and is thus not a 'standard' at all, so people working > with it have some flexibility. > > - Jim > > On 9/26/2015 9:12 AM, Jon Kerny wrote: > >> HI, >> >> I saw that there previously has been some discussions about the namelist, >> and that at least in some parts my questions has been adressed. But I feel >> that this is quite complicated. >> >> In my understanding, namelist is a shorthand for param, but this name >> thing makes it more complicated than param where name is set explicitly in >> code. >> >> >> Here are some examples I'd like to get comments on: >> >> What would be the names in an Xpath scxml if the following location >> expressions was used in a namelist? >> >> $var1 >> $var1/children >> $var1/children[last()] >> ancestor::$var1/children[last()]" >> >> If the target of the invoke/send is an ecmascript scxml with the var1 as >> a top most id what would the result be? >> >> If it instead is a xpath scxml what would be the result? >> >> And in the opposite direction, what would the names of an ecmascript >> datamodel be for the following location expressions in namelist? >> var1 >> var1.children >> var1.children.slice(-1)[0] >> (I don't know how to write something similar to ancestor) >> >> And what would happen if the target of the invoke/send is an ecmascript >> scxml with the var1 as a top most id what would the result be? >> >> If it instead is a xpath scxml what would be the result? >> >> Best regards, >> >> Jon >> >> >> > > --001a11427aeedae6ab0520a8ca89 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi,=C2=A0<div><br></div><div>thanks for the clarification.= I think that part of my confusion came from that it wasn't useful in t= he xpath model and thus it didn't make sense to me, and I felt that the= re was something I didn't understand.</div><div><br></div><div>Thanks.<= /div><div><br></div><div>/Jon</div></div><div class=3D"gmail_extra"><br><di= v class=3D"gmail_quote">On Sat, Sep 26, 2015 at 5:58 PM, Jim Barnett <span = dir=3D"ltr"><<a href=3D"mailto:[email protected]" target=3D"_blank">1= [email protected]</a>></span> wrote:<br><blockquote class=3D"gmail_quo= te" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"= >One further thought on the XPath data model and namelist.=C2=A0 =C2=A0The = XPath data model=C2=A0 _could_ be modified to say "for the purposes of= passing a namelist into invoke, the namelist attribute '$foo' shal= l be considered to match <data id=3D"foo"/>.=C2=A0 =C2=A0 W= e didn't do that, because we didn't expect 'namelist' to be= useful everywhere. However, the XPath data mode is not part of the final s= pecification, and is thus not a 'standard' at all, so people workin= g with it have some flexibility.<span class=3D"im HOEnZb"><br> <br> - Jim<br> <br> On 9/26/2015 9:12 AM, Jon Kerny wrote:<br> </span><div class=3D"HOEnZb"><div class=3D"h5"><blockquote class=3D"gmail_q= uote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1e= x"> HI,<br> <br> I saw that there previously has been some discussions about the namelist, a= nd that at least in some parts my questions has been adressed. But I feel t= hat this is quite complicated.<br> <br> In my understanding, namelist is a shorthand for param, but this name thing= makes it more complicated than param where name is set explicitly in code.= <br> <br> <br> Here are some examples I'd like to get comments on:<br> <br> What would be the names in an Xpath scxml if the following location express= ions was used in a namelist?<br> <br> $var1<br> $var1/children<br> $var1/children[last()]<br> ancestor::$var1/children[last()]"<br> <br> If the target of the invoke/send is an ecmascript scxml with the var1 as a = top most id what would the result be?<br> <br> If it instead is a xpath scxml what would be the result?<br> <br> And in the opposite direction, what would the names of an ecmascript datamo= del be for the following location expressions in namelist?<br> var1<br> var1.children<br> var1.children.slice(-1)[0]<br> (I don't know how to write something similar to ancestor)<br> <br> And what would happen if the target of the invoke/send is an ecmascript scx= ml with the var1 as a top most id what would the result be?<br> <br> If it instead is a xpath scxml what would be the result?<br> <br> Best regards,<br> <br> Jon<br> <br> <br> </blockquote> <br> <br> </div></div></blockquote></div><br></div> --001a11427aeedae6ab0520a8ca89--