Stylus Studio XML Editor

Table of contents

Appendices

C.2 Fragment Identifiers

Fragment Identifiers

The following fragment identifier syntax is compliant with the [XPTR].

The URI reference for a WSDL construct is the {target namespace} property of either the construct itself, in the case of messages, port types, bindings, services or operations, or the {target namespace} property of an ancestor construct. The URI provided by the {target namespace} property is combined with a fragment identifier, where the fragment identifier is constructed from the {name} property of the construct and the {name} properties of its ancestors as a path according to [uri-ref-frag-table]. In that table the first column gives the name of the WSDL construct as the [local name] of the element information item that represents that construct in a WSDL document. Columns two, three and four populate the variables x, y and z respectively. These variables are then used to construct the fragment in column five.

uri-ref-frag-table1 Rules for determining fragments for WSDL constructs Construct x y z Fragment
11message 11{name} property of message 11n/a 11n/a 11message(x)
11part 11{name} property of part 11{name} property of message 11n/a 11part(y/x)
11portType 11{name} property of port type 11n/a 11n/a 11portType(x)
11operation 11{name} property of operation 11{name} property of parent port type 11n/a 11operation(y/x)
11input 11{name} property of message reference 11{name} property of parent operation 11{name} property of grandparent port type 11input(z/y/x)
11output 11{name} property of message reference 11{name} property of parent operation 11{name} property of grandparent port type 11output(z/y/x)
11fault 11{name} property of message reference 11{name} property of parent operation 11{name} property of grandparent port type 11fault(z/y/x)
11binding 11{name} property of binding 11n/a 11n/a 11binding(x)
11service 11{name} property of service 11n/a 11n/a 11service(x)
11port 11{name} property of port 11{name} property of parent service 11n/a 11port(y/x)

Note that the above rules are defined in terms of component properties rather than transfer syntax. Because of the mappings defined for these properties, values are always available, even if certain optional attribute information items are missing from the WSDL document. This allows meaningful URI-references to be formed for constructs like message reference components (see [Message Reference]) whose element information items <input> and <output> may not actually carry a name attribute information item.