jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Will Scheidegger <willscheideg...@mac.com>
Subject select all nodes not having certain subnodes?
Date Thu, 19 Aug 2010 08:48:50 GMT
Dear list

I have "room" nodes with "calendar" subnodes (i.e. reservations). Now I would like to find
all rooms not having any reservations between x and y. The opposite is fairly easy:

/jcr:root/path/to/rooms/element(*,rooms)/reservations/element(*,reservation)[@endTime >
xs:dateTime(x) and @startTime < xs:dateTime(y)]

Is there any efficient way to reverse this?


View raw message