So, since my schemas are not valid because they use some XML Schema 1.1
features. I thought maybe I could get datatyping by building range indexes
on certain elements.

However, unless I am doing something wrong; range indexes do not help with
this issue.



I defined an Element Range index on  an element, magnitude with the
namespace http://www.mlhim.org/ccd and a type of xs:decimal.

This query:


declare namespace ccd = "http://www.mlhim.org/ccd";;

for $doc in fn:doc()
  return
xdmp:describe($doc//ccd:el-7ef40847-ea17-435e-856a-d489a32514d7/ccd:magnitude/data())


returns:

xs:untypedAtomic("998070")


So, does this mean that all of my queries will have to explicitly coerce
the data?

Which leaves me with fn:number() correct?  now way to test that it is an
integer, etc.

Any guidance is appreciated.



============================================
Timothy Cook
LinkedIn Profile:http://www.linkedin.com/in/timothywaynecook
MLHIM http://www.mlhim.org
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to