c:namespace

<c:namespace
  name = { ncname }
  value? = expression >
  <!-- Content: sequence-constructor -->
</c:namespace>

Creates a namespace node.

Category
instruction
Permitted parent elements
Any XCST element whose content model is sequence-constructor
Any literal result element

Attributes

name The namespace prefix.
value The namespace URI.

In addition to the attributes in the preceding table, there are a number of standard attributes that may appear on any XCST element.

Example
<person>
   <c:if test='associateSchema'>
      <c:variable name='xsiNs'>http://www.w3.org/2001/XMLSchema-instance</c:variable>
      <c:namespace name='xsi' value='xsiNs'/>
      <c:attribute name='noNamespaceSchemaLocation' namespace='{xsiNs}'>http://adventure-works.com/schemas/person.xsd</c:attribute>
   </c:if>
   ...
</person>

Error Conditions

It is a compilation error if the value attribute is present when the content of the element is non-empty.