3.1.5.1.1.2.2.4 ct_wopi-action

The ct_wopi-action complex type specifies an action (such as viewing a file) that a WOPI client can perform.

Attributes:

name: A st_wopi-action-values attribute (section 3.1.5.1.1.2.3.1) that specifies the name of the action.

default: A Boolean attribute that specifies whether the WOPI server is to use this action as the default action for this file type.

requires: A st_wopi-action-requirements attribute (section 3.1.5.1.1.2.3.2) that specifies the required capabilities of the WOPI server to be able to use this action.

urlsrc: A st_wopi-url-source attribute (section 3.1.5.1.1.2.3.3) that specifies the URI that the WOPI server can use to call the action.

ext: A string attribute that specifies the file extension supported by this action. Note that either ext or progid MUST be present, but that ext and progid MUST NOT be present in the same action.

progid: A string attribute that specifies the progid (a string that identifies a folder as being associated with a specific application) supported by this action. Note that either ext or progid MUST be present, but that ext and progid MUST NOT be present in the same action.

newprogid: A string attribute that specifies the progid that the editnew (see st_wopi-action-values in section 3.1.5.1.1.2.3.1) will use for the new file. Note that either newext or newprogid MUST be present when using editnew but that newext and newprogid MUST NOT be present in the same action.

newext: A string attribute that specifies the file extension that the editnew (see st_wopi-action-values in section 3.1.5.1.1.2.3.1) will use for the new file. Note that either newext or newprogid MUST be present when using editnew, but that newext and newprogid MUST NOT be present in the same action.

useParent: A Boolean attribute that specifies that the WOPI server MUST call the WOPI action on the parent folder of the file.

targetext: A string attribute that specifies the file extension of the target object. Used by actions that require both source and target host objects.

The following W3C XML schema ([XMLSCHEMA1] section 2.1) fragment specifies the contents of this complex type.

 <xs:complexType name="ct_wopi-action">
   <xs:attribute name="name" use="required" type="st_wopi-action-values"/>
   <xs:attribute name="default" type="xs:boolean" default="false"/>
   <xs:attribute name="requires" type="st_wopi-action-requirements"/>
   <xs:attribute name="urlsrc"  use="required" type="st_wopi-url-source"/>
   <xs:attribute name="ext" type="xs:string" use="optional"/>  
   <xs:attribute name="progid" type="xs:string" use="optional"/>
   <xs:attribute name="newprogid" type="xs:string" use="optional"/>
   <xs:attribute name="newext" type="xs:string" use="optional"/>
   <xs:attribute name="useParent" type="xs:boolean" default="false"/>
   <xs:attribute name="targetext" type="xs:string" use="optional"/>
 </xs:complexType>