Re: <p:xquery> with inline query?

On 22/01/2025 15:03, David Birnbaum wrote:
>
>
> Alas, when I try:
>
>     <p:xquery>
>         <p:with-input port="query">
>             <p:inline content-type="text/plain">substring(.,2)</p:inline>
>         </p:with-input>
>     </p:xquery>
>
>
> the error message changes to:
>
>     Can currently only handle source documents as text/plain, but
>     found: application/json
>
>

Try

<p:xquery>
       <p:with-input port="query">
          <c:query
xmlns:c="http://www.w3.org/ns/xproc-step">substring(.,2)</c:query>
       </p:with-input>
    </p:xquery>

Received on Wednesday, 22 January 2025 14:14:22 UTC