Alas there's no index for an attribute name in absence of an element name, which is why you can't express it with cts:query objects. You can pass in a variety of element names if the set is reasonable. Otherwise you'll need to do something like use collections.
Sent from my iPhone On Aug 19, 2011, at 12:47 PM, Keith Breinholt <[email protected]> wrote: > I want to display a set of documents that have a common attribute on the root > node. However, the root nodes of the documents can have any tag name such as > <html>, <xml>, ... > > I can do this easily with XPath similar to this > > element()/@lang[. eq 'eng'] > > However, I'd like to use search:search for pagination and sorting of results. > The problem is I don't know a way to specify a generic parent for an > attribute in a cts query. > > Any ideas or help is very appreciated. > > -- > Keith > "Do what you can, with what you have, where you are." - Theodore Roosevelt > _______________________________________________ > General mailing list > [email protected] > http://developer.marklogic.com/mailman/listinfo/general _______________________________________________ General mailing list [email protected] http://developer.marklogic.com/mailman/listinfo/general
