Skip to content

VSCode objects to "request:" namespace prefix #15

@djbpitt

Description

@djbpitt

Following up on my posting of 2020-10-06 to exist-open:

When using eXist 5.3.0-SNAPSHOT 587dde5f72791201512956125d4d8d0f6cc0a319 20201002114117 inside VSCode, if I create an XQuery file that reads, in its entirety:

xquery version "3.1";
declare namespace output = "http://www.w3.org/2010/xslt-xquery-serialization";
declare option output:method "xhtml";
declare option output:media-type "application/xhtml+xml";
declare option output:omit-xml-declaration "no";
declare option output:doctype-system "about:legacy-compat";
declare option exist:serialize "method=xhtml enforce-xhtml=yes";
declare variable $input as xs:string := request:get-parameter('in', 'xyz');
<html><head><title>Title</title></head><body>Here is my default input: {$input}</body></html>

a "problem" is reported on the request: prefix:

[XPST0081] "request": can not expand prefix of lexical QName to namespace URI

I have installed the Atom server-side library for eXist-db (version 1.0.1). Otherwise VSCode is communicating with eXist-db, real-time synchronization from the file system is working correctly, and I can run the query on my eXist-db instance without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions