<test-group xmlns="http://www.w3.org/2005/02/query-test-XQTSCatalog" is-XPath2="false" name="OptionDeclarationProlog" featureOwner="NIST and Frans Englich">
   <GroupInfo>
      <title>Option Declaration Declaration</title>
      <description/>
   </GroupInfo>
   <test-case is-XPath2="false" name="optiondeclprolog-1" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="standard" Creator="Carmelo Montanez">
      <description>Evaluation of simple prolog option declaration.</description>
      <spec-citation spec="XQuery" section-number="4.16" section-title="Option Declaration" section-pointer="id-option-declaration"/>
      <query name="optiondeclprolog-1" date="2006-03-24"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <output-file role="principal" compare="Text">optiondeclprolog-1.txt</output-file>
   </test-case>
   <test-case is-XPath2="false" name="optiondeclprolog-2" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="runtime-error" Creator="Carmelo Montanez">
      <description>Evaluation of prolog option declaration for which there is no namespace prefix defined.</description>
      <spec-citation spec="XQuery" section-number="4.16" section-title="Option Declaration" section-pointer="id-option-declaration"/>
      <query name="optiondeclprolog-2" date="2006-03-24"/>
      <input-file role="principal-data" variable="input-context1">emptydoc</input-file>
      <expected-error>XPST0081</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-1" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="runtime-error">
      <description>The name of an option must be a full QName.</description>
      <query name="K-OptionDeclarationProlog-1" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0081</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-2" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="standard">
      <description>Five identical options appearing after each other.</description>
      <query name="K-OptionDeclarationProlog-2" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-OptionDeclarationProlog-2.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-3" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="standard">
      <description>A simple option using double quotes for the value.</description>
      <query name="K-OptionDeclarationProlog-3" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-OptionDeclarationProlog-3.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-4" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="standard">
      <description>A simple option using single quotes for the value.</description>
      <query name="K-OptionDeclarationProlog-4" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <output-file role="principal" compare="Text">K-OptionDeclarationProlog-4.txt</output-file>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-5" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="runtime-error">
      <description>An undeclared prefix in a option declaration is an error regardless of any option support in the implementation.</description>
      <query name="K-OptionDeclarationProlog-5" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0081</expected-error>
   </test-case>
   <test-case Creator="Frans Englich" is-XPath2="false" name="K-OptionDeclarationProlog-6" FilePath="Expressions/PrologExpr/OptionDeclarationProlog/" scenario="parse-error">
      <description>A syntactically invalid option declaration.</description>
      <query name="K-OptionDeclarationProlog-6" date="2007-11-26+01:00"/>
      <input-file role="principal-data" variable="input-context">emptydoc</input-file>
      <expected-error>XPST0003</expected-error>
   </test-case>
</test-group>