Proposal: Name and optional query for TokenLocator

Hi

New issue to be placed in bugzilla - have also included the proposal to 
resolve it.

Issues:

1) All of the static types within WS-CDL have a name attribute, except 
for the TokenLocator - which is probably because it provides additional 
information based on a relationship between two types (i.e. token and 
information type). However, it would be useful to be able to refer to a 
particular token locator by name, although unlike the other types, maybe 
it should be optional.

2) The 'query' attribute on the token locator forces the user to specify 
implementation details as this field is mandatory. Other parts of the 
spec leave 'implementation details' (such as specifying a WSDL interface 
or conditional expressions) as optional or non-observable.


Proposals:

Section 5.4:



1) Change:

<tokenLocator  tokenName="QName" 
               informationType="QName" 
               part="NCName"?
               query="XPath-expression" />

to:

<tokenLocator  name="NCName"? tokenName="QName" 
               informationType="QName" 
               part="NCName"?
               query="XPath-expression"? />


2) Add: (before the sentence "The attribute tokenName identifies ....."

"The OPTIONAL attribute |name| is used to specify a distinct name for 
each |tokenLocator| element declared within a choreography package."


3) Change:
"The attribute |query| defines the query string that is used to select a 
document fragment within a document or a document part."
to:
"The OPTIONAL attribute |query| defines the query string that is used to 
select a document fragment within a document or a document part."



Regards
Gary

Received on Tuesday, 1 August 2006 09:00:53 UTC