java-properties-012

Tests that an atomic cannot be cast to Java properties.

Test is expected to fail with error code cxerr:XC0001.

The pipeline

<p:declare-step xmlns:cx="http://xmlcalabash.com/ns/extensions"
                xmlns:cxerr="http://xmlcalabash.com/ns/error"
                xmlns:ex="https://xmlcalabash.com/ns/examples" xmlns:p="http://www.w3.org/ns/xproc"
                xmlns:t="http://xproc.org/ns/testsuite/3.0"
                xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-inline-prefixes="ex xs cx"
                name="main" version="3.0">
   <p:output port="result"/>
   <p:cast-content-type content-type="text/x-java-properties">
      <p:with-input>
         <p:inline content-type="application/xhtml+xml">
            <body/>
         </p:inline>
      </p:with-input>
   </p:cast-content-type>
</p:declare-step>

Revision history

20 Jan 2025, Norm Tovey-Walsh
Created test.