Name

p:namespace-delete — The standard p:namespace-delete step.

Synopsis

The p:namespace-delete step deletes all of the namespaces identified by the specified prefixes from the document appearing on port source.

Input portPrimarySequenceContent types
source✔  xml html 
Output portPrimarySequenceContent types
result✔  xml html 
Option nameTypeRequired
prefixesxs:string✔ 
Declaration
1 |<p:declare-step xmlns:p="http://www.w3.org/ns/xproc">
  |   <p:input port="source" content-types="xml html"/>
  |   <p:output port="result" content-types="xml html"/>
  |   <p:option name="prefixes" required="true" as="xs:string"/>
5 |</p:declare-step>
Errors
CodeDescription
err:XC0108It is a dynamic error (err:XC0108) if any prefix is not in-scope at the point where the p:namespace-delete occurs.
err:XC0109It is a dynamic error (err:XC0109) if a namespace is to be removed from an attribute and the element already has an attribute with the resulting name.

Description

The p:namespace-delete step is defined in the XProc 3.0: Standard Step Library. It is also described on XProcRef.org.