java-properties-014

Tests that an atomic cannot be cast to Java properties.

Test java-properties-014.xml 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: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 encoding="base64" content-type="application/octet-stream">U1BPT04K</p:inline>
      </p:with-input>
   </p:cast-content-type>
</p:declare-step>

Revision history

10 May 2026, Norm Tovey-Walsh

Fixed title.

20 Jan 2025, Norm Tovey-Walsh

Created test.