Problem with Quip

Hi,

I tried to execute an XQuery request with Quip on the following document stored in Tamino :

test


The query is :
define function testQuip(){
for $a in collection(“TestQuip”)/TestQuip/type
return $a
}

Upon execution, this error rises :
<quip:ExecutionError xmlns:quip=“http://namespaces.softwareag.com/tamino/quip/”>
quip:queryFilecommand line query</quip:queryFile>
quip:message

</quip:message>
</quip:ExecutionError>

I think the “type” tag causes this error.

Hi,

yes your guess is correct. Though the current draft defines
XQuery to have no reserved words, the draft that QuiP adheres
to still defined those and among others ‘type’.
XQuery (and QuiP) allows using the prefix token “:” on unprefixed
QNames to distinguish tokens that are spelled the same as
keywords, i.e. ‘collection(“TestQuip”)/TestQuip/:type’ would
probably do.

Regards,
Juliane.