This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 946 - Section 2.5.2.3 - record element, target variable attribute.
Summary: Section 2.5.2.3 - record element, target variable attribute.
Status: RESOLVED FIXED
Alias: None
Product: WS Choreography
Classification: Unclassified
Component: Spec: Variables (show other bugs)
Version: unspecified
Hardware: Other other
: P2 normal
Target Milestone: --
Assignee: Martin Chapman
QA Contact: Martin Chapman
URL: http://lists.w3.org/Archives/Public/p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-16 15:36 UTC by Greg Ritzinger
Modified: 2004-12-01 16:36 UTC (History)
0 users

See Also:


Attachments

Description Greg Ritzinger 2004-11-16 15:36:19 UTC
Applies to editor's draft version nov 11,2004

Says that the 'variable' attribute can only use the cdl:getVariable function.

Just to clarify - is it therefore ok to specify a documentPath (query) for the
target variable? What would happen if the CDL attempted to record information in
a subpart of a document that has not been initialized yet?

Noticed that the same situation arises with the assign activity which shows some
examples, but all of the target variable attributes do not include the
documentPath. However, I could see situations where being able to record/assign
information within the contents of a document would be required. Therefore, is
this a case of documenting that an exception may occur, or do we leave this
implicit?

The other issue with using the 'getVariable' function in this way, is that the
description of this function states that it "Returns the information of the
Variable with name varName as a node set containing a single node." However, in
the context of the target variable attribute, we are actually after a reference
to the variable.

My preference would be to expand the relevant fields into attributes on the
'target' node,

e.g. 
<copy>
    <source expression="cdl:getVariable(......)" />
    <target variable="ncname" part="ncname"? documentPath="xpath"? />
</copy>

documentPath and possibly role would be optional/unnecessary depending on
context (i.e. the role would be inferred from the assign activity).

This would ensure that the semantics of the source and target are appropriate -
i.e. the source is intended to derive information (possibly just using an
'expression' attribute), and the target is responsible for identifying the
reference to the location where the information is to be stored.

Gary
Comment 1 Martin Chapman 2004-12-01 16:36:20 UTC
fixed in november 10th version