Suppose I have a bunch of documents with no namespace and no schemas.
I would like to apply a schema to these documents so that
1) I can avoid lots of casting in my xquery such as
fn:avg(($runs[@status eq 'true']/@elapsed)
instead of
fn:avg( xs:dayTimeDuration($runs[@status eq 'true']/@elapsed ))
2) So that indexes are built knowing about the element and attribute types so
that things like
fn:max( xdmp:directory("/logs/" )//run/@elapsed )
can go through an index instead and be sorted correctly (by dateTimeDuration
instead of by string
Is this possible ?
If so how ?
Thanks for suggestions and pointers to RTFM's
----------------------------------------
David A. Lee
Senior Principal Software Engineer
Epocrates, Inc.
[email protected]<mailto:[email protected]>
812-482-5224
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general