Okay confirmed that the validation works if you remove the explicit casts...but doesn't that mean that there's another bug? Regardless as to whether or not the explicit casts are needed the behavior of the validation should be the same.
I bring this up because the Saxon implementation fails if the casts are not there -- I'm guessing the nodes are not typed in that implementation. I'd hate to have one schema for Saxon and another for Xerces -- the same schema should work on both implementations. Thoughs? -jOrGe W. On May 23, 2012, at 12:52 AM, Mukul Gandhi wrote: > Hi Jorge, > Your example uses explicit casts on the XDM nodes, in xs:assert expressions. > > If I remove explicit casts from the attribute node references in your > examples, I get the expected results. i.e like <assert test="@end le > (@start + xsd:dayTimeDuration('P1D'))"/> and <assert test="(@end - > @start) le xsd:dayTimeDuration('P1D')"/>. > > Since the xs:assert XDM nodes are typed, we don't need to explicitly > cast them during XPath expression evaluation. > > > On Tue, May 22, 2012 at 11:30 PM, Jorge Williams > <jorge.willi...@rackspace.com> wrote: >> Hi Mukul, >> >> Just updated. Unfortunately, I'm still getting the same error with the >> same example. Am I doing something wrong? I'm attaching example and sample >> documents. good.xml should succeed for both schema, but it doesn't :-( >> >> Thanks, >> >> -jOrGe W. > > > > -- > Regards, > Mukul Gandhi > > --------------------------------------------------------------------- > To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org > For additional commands, e-mail: j-users-h...@xerces.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org For additional commands, e-mail: j-users-h...@xerces.apache.org