Re: <p:xquery> with inline query?

Dear Norm (cc xproc-dev),

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


Same error if I set content-type="application/xquery".

Curioser and curioser,

David

On Wed, Jan 22, 2025 at 4:15 AM Norm Tovey-Walsh <ndw@nwalsh.com> wrote:

> Norm Tovey-Walsh <ndw@nwalsh.com> writes:
> > My implementation doesn’t do much better with the error here:
> >
> > Fatal err:XD0030 at file://…/pipe.xpl:15:15
> > Step failed: “No root”.
>
> Now:
>
> Fatal err:XD0030 at file://…/pipe.xpl:4:31: Step failed: XQuery query
> input is application/xml, but XML document has no document element.
>
>                                         Be seeing you,
>                                           norm
>
> --
> Norm Tovey-Walsh <ndw@nwalsh.com>
> https://norm.tovey-walsh.com/
>
> > I find that a great part of the information I have was acquired by
> > looking up something and finding something else on the way.--Franklin
> > P. Adams
>
>

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