Hi,
I'm not sure it will work for what you want. If you pull the values from the indexes, for example with cts:values, then your values should be typed. ML will also check the values on the way in while indexing. But I don't think it will type the values in the document, as you show. On Fri, Oct 31, 2014 at 1:06 PM, Timothy W. Cook <[email protected]> wrote: > 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 > >
_______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
