Step set-doctype {http://www.daisy.org/ns/pipeline/xproc}
Sets, or deletes, the doctype of a file. If `doctype` is the empty string, the doctype will be deleted. It is an error if `doctype` does not match the regex
`^<!DOCTYPE\s+\w+\s*(|SYSTEM\s+("[^"]*"|'[^']*')|PUBLIC\s+("[\s\w\-'()+,\./:=?;!*#@$_%]*"|'[\s\w\-()+,\./:=?;!*#@$_%]*')\s+("[^"]*"|'[^']*'))(\s*\[[^\]]+\])?>$`. The result port will contain a
`c:result` document with the URI to the file as its text node.
Output Ports
| Port | Description |
| result primary | |
Options
| Local Name | Namespace URI | Default | Description |
| href required | | | |
| doctype required | | | |
| encoding | | 'utf-8' | |