~zorba-coders/zorba/fn_envvars

« back to all changes in this revision

Viewing changes to src/functions/func_accessors_impl.cpp

  • Committer: Juan Zacarias
  • Date: 2012-02-13 19:25:51 UTC
  • mfrom: (10599.1.56 zorba)
  • Revision ID: juan457@gmail.com-20120213192551-4daq70pie0c0gof1
merged with trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
95
95
    if (nodeKind == store::StoreConsts::piNode ||
96
96
        nodeKind == store::StoreConsts::commentNode)
97
97
    {
98
 
      return tm->create_builtin_atomic_type(TypeConstants::XS_STRING, q);
 
98
      return tm->create_builtin_atomic_type(store::XS_STRING, q);
99
99
    }
100
100
 
101
101
    if (nodeKind == store::StoreConsts::documentNode ||
102
102
        nodeKind == store::StoreConsts::textNode)
103
103
    {
104
 
      return tm->create_builtin_atomic_type(TypeConstants::XS_UNTYPED_ATOMIC, q);
 
104
      return tm->create_builtin_atomic_type(store::XS_UNTYPED_ATOMIC, q);
105
105
    }
106
106
 
107
107
    xqtref_t cType = nType.get_content_type();
115
115
      }
116
116
      else if (TypeOps::is_equal(tm, *cType, *RTM.UNTYPED_TYPE))
117
117
      {
118
 
        return tm->create_builtin_atomic_type(TypeConstants::XS_UNTYPED_ATOMIC, q);
 
118
        return tm->create_builtin_atomic_type(store::XS_UNTYPED_ATOMIC, q);
119
119
      }
120
120
      else if (TypeOps::is_subtype(tm, *cType, *RTM.ANY_ATOMIC_TYPE_STAR, loc))
121
121
      {
179
179
void populate_context_accessors_impl(static_context* sctx)
180
180
{
181
181
  DECL(sctx, fn_name_func,
182
 
       (createQName(static_context::W3C_FN_NS.c_str(), "", "name"),
 
182
       (createQName(static_context::W3C_FN_NS, "", "name"),
183
183
        GENV_TYPESYSTEM.STRING_TYPE_ONE));
184
184
 
185
185
  DECL(sctx, fn_name_func,
186
 
       (createQName(static_context::W3C_FN_NS.c_str(), "", "name"),
 
186
       (createQName(static_context::W3C_FN_NS, "", "name"),
187
187
        GENV_TYPESYSTEM.ANY_NODE_TYPE_QUESTION,
188
188
        GENV_TYPESYSTEM.STRING_TYPE_ONE));
189
189