XQuery 的结果是如何以 xml 声明为前缀的,以及将其链接到 xslt 的行?
错误:
Stopped at /home/nicholas/git/xml/labs.xq, 8/6:
[XPST0003] Processing instruction has illegal name: xml.
询问:
xquery version "3.1";
for $doc in db:open("covid")
return
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="labs.xsl"?>
$doc
这样结果就可以与 xslt 一起使用了。也许将xml的声明和“链接”行放在查询之外?
也可以看看: