It's cts:element-attribute-word-query().  You need to specify a QName for the 
element and also for the attribute.  You can include a long list of QNames for 
each if you'd like, but you can't leave it empty.  There's no index in the 
server at this point that indexes attribute contents apart from its 
element-attribute location.

-jh-

On Dec 10, 2009, at 10:53 AM, Lee, David wrote:

> Whats the right cts:search* query to do a word search in attribute values 
> like cts:word-query() but for attributes.
> I cant find one !!
>  
> I tried this
>  
> cts:search( //@* , "C28161"  )
> cts:search( doc()//@* , "C28161"  )
>  
> but no go ... (not searchable).
>  
> cts:search(
> cts:element-attribute-word-query( () , () , “C28161” ) )
>  
> but no go ...
>  
> Any suggestions ?
>  
>  
> ----------------------------------------
> David A. Lee
> Senior Principal Software Engineer
> Epocrates, Inc.
> [email protected]
> 812-482-5224
>  
>  
> _______________________________________________
> General mailing list
> [email protected]
> http://xqzone.com/mailman/listinfo/general

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

Reply via email to