Questions tagged [xquery-3.0]

Use this tag for questions specific to XQuery version 3.0 and no other version.

XQuery 3.0 introduces the following new features:

  • Functions are first-class items which can be passed as parameters to other functions

  • Functions and variables support public and private annotations

  • Union types are allowed in function arguments

  • XML Schema 1.1 is supported

  • Clauses added to FLWOR expressions:

    • group by: assigns tuples in the input tuple stream to a group, returns a tuple for each group

    • tumbling window: destructing assignment of a sequence during iteration without intersection

    • sliding window: destructing assignment of a sequence during iteration with intersection

    • count clause: binds a variable to the position in each tuple in the tuple stream

    • allowing empty: facilitates outer joins as in SQL

  • decimal format declaration: adds a decimal format to the statically known decimal formats

  • try/catch expressions: allows for user defined recovery from errors

  • switch expressions: allows for user defined branching logic

References

159 questions
0
votes
1 answer

Invoking database using xquery giving duplicate values

I am using a XQuery to query database in an OSB project. Consider the following table: userId Name Category ------ ------- -------- 1 Dheepan Student 2 Raju Student and the XQuery let $userName:=fn-bea:execute-sql( …
JPS
  • 2,730
  • 5
  • 32
  • 54
0
votes
0 answers

Xquery ERROR err:XPDY0002: undefined value for variable $skill

I am trying to use xquery for a project and I cannot see why this query is not working. It gives me the following error: err:XPDY0002: undefined value for variable $skill I am new to xquery and I am using EXIST DB as a database and I have tried…
Vamsi Varanasi
  • 115
  • 1
  • 1
  • 6
0
votes
2 answers

XQuery for on items

I know how to use the For instruction to create a loop on a collection or on a document but I have troubles to create a loop on an item()* content of item()*: abcd
0
votes
2 answers

XQuery expression has an unexpected token "/"

So I'm working with DB2 from command line. Before you ask, yes, it is running with admin rights and I can connect to the database and db2 is running. Here is my input in the cmd: db2 xquery declare default element namespace…
0
votes
2 answers

Xquery Multiple Results in a node

When I try to execute my Xquery Code on xml file, I am getting multiple results in one of my fields. Here is my xml file
user2133404
  • 1,816
  • 6
  • 34
  • 60
0
votes
1 answer

xquery- getting duplicate function definition error when I use the functx library from xqueryfunctions.com

I am trying to run some Xquery code in a java program and I am using the Saxon free java library for this purpose. Now for some reason I am getting repeated "duplicate function definition" errors when I run this code-- this error is occurring for…
Arvind
  • 6,404
  • 20
  • 94
  • 143
-1
votes
1 answer

Calculate the colwidth while namest and namend appearing in "entry" element

I am trying to Calculated of sum tgroup/colspec/@colwidth when namest to nameend appearing in entry element. I run the below XSLT code but expected output is not coming, Please help me Thanks in advance! Input XML:
Kita Ansari
  • 121
  • 7
-1
votes
1 answer

How to fetch data from any data type BPEL?[xpath/xquery]

I am not able to fetch data from XSD: any data type in the BPEL Subscribe to the Event process
Nilesh Jha
  • 15
  • 6
-1
votes
1 answer

How to display the variables only once in Xquery?

I am trying to display three different variables at once. Here is what i have tried. let $totalmovies := count(//Movies/Movie) let $averagevariton:=(count(//Movies/Movie/secondtitles/OtherTitleName) +…
user2775042
  • 509
  • 2
  • 6
  • 21
1 2 3
10
11