跳到主要内容
uencoder

XQuery Reference

Reference 为 XQuery, functional 查询 language 为 XML 数据源.

FLWOR Expressions

XQuery FLWOR expressions (For, Let, Where, Order by, Return) structure queries similar to SQL. The for clause iterates over sequences, let binds variables, where filters, order by sorts, and return constructs output. Expressions can be nested and composed for complex transformations. XQuery can construct new XML nodes, enabling transformation pipelines. The language is Turing-complete and typed.

for
Iterate over sequence
for $b in //book
where
Filter condition
where $b/price > 30
return
Construct output
return $b/title

Functions and Types

XQuery has a rich built-in function library including string, numeric, date, and node functions. User-defined functions can be declared with typed parameters and return types. The type system includes atomic types, sequences, and schema-validated nodes. XQuery Update Facility adds insert, delete, and replace operations. Full-text search extensions provide text ranking and stemming.

built-in
String, numeric, date funcs
fn: namespace
user functions
declare function
typed params
update
Insert/delete/replace
XQuery Update Facility

相关工具

参考链接