p:choose
Element information
Namespace: http://www.w3.org/ns/xproc
Schema document: xproc.xsd
Type: Anonymous
Properties: Global, Qualified
Content
- Sequence [1..1]
- Choice [0..*]from subst. group p:annotation
- Sequence [0..1]
- p:xpath-context [1..1]
- Choice [0..*]from subst. group p:annotation
- Sequence [0..*]
- p:variable [1..1]
- Choice [0..*]from subst. group p:annotation
- Sequence [0..*]
- p:when [1..1]
- Choice [0..*]from subst. group p:annotation
- Sequence [0..1]
- p:otherwise [1..1]
- Choice [0..*]from subst. group p:annotation
- Choice [0..*]
Attributes
Name | Occ | Type | Description | Notes |
---|---|---|---|---|
xml:id | [0..1] | xsd:ID | from type p:anyProc | |
xml:base | [0..1] | xsd:anyURI | from type p:anyProc | |
name | [0..1] | xsd:NCName | from type p:componentType | |
Any attribute | [0..*] | Namespace: ##other, Process Contents: lax |
Used in
- Group p:subPipe
- Anonymous type of element p:catch via reference to p:groupModel
- Anonymous type of element p:compoundStep via reference to p:subPipe
- Anonymous type of element p:declare-step via reference to p:subPipe
- Anonymous type of element p:for-each via reference to p:subPipe
- Anonymous type of element p:group via reference to p:groupModel
- Anonymous type of element p:otherwise via reference to p:groupModel
- Anonymous type of element p:pipeline via reference to p:subPipe
- Anonymous type of element p:viewport via reference to p:subPipe
- Anonymous type of element p:when via reference to p:subPipe
- Group p:groupModel via reference to p:subPipe
- Type p:stepType via reference to p:subPipe (Element p:step)
Substitution hierarchy
- p:component
- can be substituted with p:choose
Sample instance
<p:choose> <p:documentation> <!--any element--> </p:documentation> <p:xpath-context> <p:documentation> <!--any element--> </p:documentation> <p:pipe step="NCName" port="NCName"> <p:documentation> <!--any element--> </p:documentation> </p:pipe> <p:documentation> <!--any element--> </p:documentation> </p:xpath-context> <p:documentation> <!--any element--> </p:documentation> <p:variable name="QName" select="string"> <p:namespaces> <p:documentation> <!--any element--> </p:documentation> </p:namespaces> <p:pipe step="NCName" port="NCName"> <p:documentation> <!--any element--> </p:documentation> </p:pipe> <p:namespaces> <p:documentation> <!--any element--> </p:documentation> </p:namespaces> </p:variable> <p:documentation> <!--any element--> </p:documentation> <p:when test="string"> <p:documentation> <!--any element--> </p:documentation> <p:xpath-context> <p:documentation> <!--any element--> </p:documentation> <p:pipe step="NCName" port="NCName">... </p:pipe> <p:documentation> <!--any element--> </p:documentation> </p:xpath-context> <p:documentation> <!--any element--> </p:documentation> <p:output port="NCName"> <p:documentation> <!--any element--> </p:documentation> <p:empty>... </p:empty> <p:documentation> <!--any element--> </p:documentation> </p:output> <p:documentation> <!--any element--> </p:documentation> <p:variable name="QName" select="string"> <p:namespaces>... </p:namespaces> <p:pipe step="NCName" port="NCName">... </p:pipe> <p:namespaces>... </p:namespaces> </p:variable> <p:documentation> <!--any element--> </p:documentation> <p:add-attribute match="string"> <p:input port="NCName">... </p:input> </p:add-attribute> <p:documentation> <!--any element--> </p:documentation> </p:when> <p:documentation> <!--any element--> </p:documentation> <p:otherwise> <p:output port="NCName"> <p:documentation> <!--any element--> </p:documentation> <p:empty>... </p:empty> <p:documentation> <!--any element--> </p:documentation> </p:output> <p:variable name="QName" select="string"> <p:namespaces>... </p:namespaces> <p:pipe step="NCName" port="NCName">... </p:pipe> <p:namespaces>... </p:namespaces> </p:variable> <p:documentation> <!--any element--> </p:documentation> <p:add-attribute match="string"> <p:input port="NCName">... </p:input> </p:add-attribute> <p:documentation> <!--any element--> </p:documentation> </p:otherwise> <p:documentation> <!--any element--> </p:documentation> </p:choose>