432
432
// W3C namespaces
434
static const zstring W3C_NS_PREFIX; // http://www.w3.org/
436
static const zstring W3C_XML_NS; // http://www.w3.org/XML/1998/namespace
438
static const zstring W3C_FN_NS; // http://www.w3.org/2005/xpath-functions
434
static const char* W3C_NS_PREFIX; // http://www.w3.org/
436
static const char* W3C_XML_NS; // http://www.w3.org/XML/1998/namespace
438
static const char* W3C_FN_NS; // http://www.w3.org/2005/xpath-functions
441
441
// Zorba namespaces
444
static const zstring ZORBA_NS_PREFIX; // http://www.zorba-xquery.com/
444
static const char* ZORBA_NS_PREFIX; // http://www.zorba-xquery.com/
446
446
// Namespaces of external modules declaring zorba builtin functions
447
static const zstring ZORBA_MATH_FN_NS;
448
static const zstring ZORBA_BASE64_FN_NS;
449
static const zstring ZORBA_NODEREF_FN_NS;
450
static const zstring ZORBA_NODEPOS_FN_NS;
451
static const zstring ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS;
452
static const zstring ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
453
static const zstring ZORBA_STORE_STATIC_COLLECTIONS_DDL_FN_NS;
454
static const zstring ZORBA_STORE_STATIC_COLLECTIONS_DML_FN_NS;
455
static const zstring ZORBA_STORE_STATIC_INDEXES_DDL_FN_NS;
456
static const zstring ZORBA_STORE_STATIC_INDEXES_DML_FN_NS;
457
static const zstring ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS;
458
static const zstring ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS;
459
static const zstring ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS;
460
static const zstring ZORBA_STORE_DYNAMIC_UNORDERED_MAP_FN_NS;
461
static const zstring ZORBA_SCHEMA_FN_NS;
462
static const zstring ZORBA_XQDOC_FN_NS;
463
static const zstring ZORBA_RANDOM_FN_NS;
464
static const zstring ZORBA_INTROSP_SCTX_FN_NS;
465
static const zstring ZORBA_REFLECTION_FN_NS;
466
static const zstring ZORBA_STRING_FN_NS;
467
static const zstring ZORBA_FETCH_FN_NS;
468
static const zstring ZORBA_NODE_FN_NS;
469
static const zstring ZORBA_XML_FN_NS;
447
static const char* ZORBA_MATH_FN_NS;
448
static const char* ZORBA_BASE64_FN_NS;
449
static const char* ZORBA_JSON_FN_NS;
450
static const char* ZORBA_NODEREF_FN_NS;
451
static const char* ZORBA_NODEPOS_FN_NS;
452
static const char* ZORBA_STORE_DYNAMIC_COLLECTIONS_DDL_FN_NS;
453
static const char* ZORBA_STORE_DYNAMIC_COLLECTIONS_DML_FN_NS;
454
static const char* ZORBA_STORE_STATIC_COLLECTIONS_DDL_FN_NS;
455
static const char* ZORBA_STORE_STATIC_COLLECTIONS_DML_FN_NS;
456
static const char* ZORBA_STORE_STATIC_INDEXES_DDL_FN_NS;
457
static const char* ZORBA_STORE_STATIC_INDEXES_DML_FN_NS;
458
static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DDL_FN_NS;
459
static const char* ZORBA_STORE_STATIC_INTEGRITY_CONSTRAINTS_DML_FN_NS;
460
static const char* ZORBA_STORE_DYNAMIC_DOCUMENTS_FN_NS;
461
static const char* ZORBA_STORE_DYNAMIC_UNORDERED_MAP_FN_NS;
462
static const char* ZORBA_SCHEMA_FN_NS;
463
static const char* ZORBA_XQDOC_FN_NS;
464
static const char* ZORBA_RANDOM_FN_NS;
465
static const char* ZORBA_INTROSP_SCTX_FN_NS;
466
static const char* ZORBA_REFLECTION_FN_NS;
467
static const char* ZORBA_STRING_FN_NS;
468
static const char* ZORBA_URI_FN_NS;
469
static const char* ZORBA_FETCH_FN_NS;
470
static const char* ZORBA_NODE_FN_NS;
471
static const char* ZORBA_XML_FN_NS;
472
static const char* ZORBA_XML_FN_OPTIONS_NS;
471
474
// Namespaces of virtual modules declaring zorba builtin functions
472
static const zstring ZORBA_UTIL_FN_NS;
473
static const zstring ZORBA_SCRIPTING_FN_NS;
475
static const char* ZORBA_UTIL_FN_NS;
476
static const char* ZORBA_SCRIPTING_FN_NS;
475
478
// Namespaces of virtual modules declaring internal builtin functions of
476
479
// XQUERY or zorba. Internal functions are not visible to xquery programs.
477
static const zstring XQUERY_OP_NS;
478
static const zstring ZORBA_OP_NS;
480
static const char* XQUERY_OP_NS;
481
static const char* ZORBA_OP_NS;
480
483
// options-related namepsaces
481
static const zstring ZORBA_OPTIONS_NS;
482
static const zstring ZORBA_OPTION_WARN_NS;
483
static const zstring ZORBA_OPTION_FEATURE_NS;
484
static const zstring ZORBA_OPTION_OPTIM_NS;
485
static const zstring ZORBA_VERSIONING_NS;
484
static const char* ZORBA_OPTIONS_NS;
485
static const char* ZORBA_OPTION_WARN_NS;
486
static const char* ZORBA_OPTION_FEATURE_NS;
487
static const char* ZORBA_OPTION_OPTIM_NS;
488
static const char* ZORBA_VERSIONING_NS;
488
491
static_context * theParent;