<?xml-stylesheet type="text/xsl" href="/style/testcase.xsl"?>
<t:test xmlns:t="http://xproc.org/ns/testsuite"
        xmlns:p="http://www.w3.org/ns/xproc"
        xmlns:c="http://www.w3.org/ns/xproc-step"
        xmlns:err="http://www.w3.org/ns/xproc-error"
        error="err:XS0051">

  <t:title>Test err:XS0051 #001</t:title>
  
  <t:description>
    <p xmlns='http://www.w3.org/1999/xhtml'>It is a static error if
    the except-prefixes attribute on p:namespaces does not contain
    a list of tokens or if any of those tokens is not a prefix bound
    to a namespace in the in-scope namespaces of the p:namespaces
    element.</p>
  </t:description>

  <t:input port='source'>
    <html xmlns="http://www.w3.org/1999/xhtml">
      <head>
        <title>Some title</title>
      </head>
      <body>
        <h1>Some title</h1>
        <p>Some <del>deleted</del>text.</p>
      </body>
    </html>
  </t:input>
  
  <t:pipeline>
    <p:declare-step version='1.0'>
      <p:input port="source"/>
      <p:output port="result"/>
      <p:option name="irrelevant" select="'also irrelevant'"
                xmlns:h="http://www.w3.org/1999/xhtml"/>
      
      <p:delete>
        <p:with-option name="match" select="'h:del'">
          <p:namespaces binding="irrelevant" except-prefixes="h"/>
        </p:with-option>
      </p:delete>
      
    </p:declare-step>
  </t:pipeline>
  
</t:test>

