[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: RE: [wsbpel] Groups - New Action Item #0067 Change example XPath expression ...
The example Xpath expressions from those two lines are as follows:
. a single XML infoset item: e.g. $myFooVar/lines/line[2]
. a collection of XML infoset items e.g. $myFooVar/lines
After reading that, I imagine that the XML might look like this:
<var>
<lines>
<line>one</line>
<line>two</line>
<line>three</line>
</lines>
</var>
The first expression illustrates selecting a single infoset item, which
would result in the 2nd line element.
The second expression would select a single element, the lines element. This
element has multiple children, but it's still a single element. In order to
get multiple elements back from the expression you would have to select the
individual lines. This could be done a number of ways but I think
$myFooVar/lines/* is the clearest.
If I misread the above or if you feel strongly about keeping the current
example then I'll remove the action item since it's a minor thing and I
don't want to open debate on a section we already reviewed.
Thanks
-----Original Message-----
From: Alex Yiu [mailto:alex.yiu@oracle.com]
Sent: Thursday, March 30, 2006 2:57 PM
To: mark.ford@active-endpoints.com
Cc: wsbpel@lists.oasis-open.org; Alex Yiu
Subject: Re: [wsbpel] Groups - New Action Item #0067 Change example XPath
expression ...
Hi Mark,
I am not sure I follow your suggestion/comment.
My expectation/interpretation is: "lines" is the parent element of multiple
"line" elements.
Regards,
Alex Yiu
mark.ford@active-endpoints.com wrote:
>OASIS Web Services Business Process Execution Language (WSBPEL) TC member,
>
>Mr Mark Ford has created a new action item.
>
>Number: #0067
>Description: Change example XPath expression ...
>Owner: Unassigned
>
>
>Comments:
>Mr Mark Ford 2006-03-30 19:29 GMT
>While the current example is valid XPath, it looks odd following the
example for selecting a single infoset item which is:
$myFooVar/lines/line[2]. The new example better illustrates that we're
expecting to get multiple "line" elements (and other children) while the
previous example would only return a collection if there were multiple
"lines" elements.
>
>View Details:
>http://www.oasis-open.org/apps/org/workgroup/wsbpel/members/action_item.php
?action_item_id=1426
>
>
>
>PLEASE NOTE: If the above links do not work for you, your email
application
>may be breaking the link into two pieces. You may be able to copy and
paste
>the entire link address into the address field of your web browser.
>
>- OASIS Open Administration
>
>
---------------------------------------------------------------------
To unsubscribe from this mail list, you must leave the OASIS TC that
generates this mail. You may a link to this group and all your TCs in OASIS
at:
https://www.oasis-open.org/apps/org/workgroup/portal/my_workgroups.php
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]