On 25/11/2013 12:19, Florent Georges wrote: > Hi, > > In order to deal with binary nodes, I am used to expressions like > the following with MarkLogic flavour of XQuery: > > $node instance of binary() > > But the NodeKind binary() is not available anymore in MarkLogic's > implementation of XQuery 3.0. How can we test whether a node is a > binary mode in XQuery 3.0? (I mean, except testing if it is a node, > then if it is none of the standard node kinds, which would be very > fragile)
The binary() node test is a MarkLogic extension to XQuery, and is only available in "1.0-ml" mode. All XQuery 3.0 features are also available in "1.0-ml" mode. Other than the methods you suggest, I don't think there is another way to test for a binary node. John -- John Snelson, Lead Engineer http://twitter.com/jpcs MarkLogic Corporation http://www.marklogic.com _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
