I need to filter on the data structure below using a combination of both the
<name> and <access> values.

 

<permissions>

    <Permission>

        <access>deny</access>

        <name>execute</name>

    </Permission>

    <Permission>

        <access>grant</access>

        <name>traverse</name>

    </Permission>

</permissions>

 

It seems one way to accomplish this is to create a fragment root on the
Permission element.  (This would create very large number of fragments.)

 

I also thought that a field defined on the Permission element (the only
include, no excludes) would work - as long as the descendant values were
always appended in order.  For example:

 

  cts:field-word-query('permissionField', 'denyexecute')

 

Can I rely on that?  Are there other possible solutions?

 

Thanks,

gary

_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to