Re: <p:xquery> with inline query?

David Birnbaum <djbpitt@gmail.com> writes:
> the error message changes to:
>
>  Can currently only handle source documents as text/plain, but found: application/json

On XML Calabash? That’s…odd. I swear I tried it this morning before I replied to your message.

This ought to work as well:

<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>

                                        Be seeing you,
                                          norm

--
Norm Tovey-Walsh <ndw@nwalsh.com>
https://norm.tovey-walsh.com/

> Sometimes I think we're alone. Sometimes I think we're not. In either
> case, the thought is staggering.--R. Buckminster Fuller

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