[MarkLogic Dev General] Attribute value based xquery

Devadoss P devadossp at gmail.com
Fri Aug 10 05:10:44 PDT 2007


Hi,

I am having problem in generating xquery to search on attribute value of
html element.  Can anyone comeacross this situation?

<html>
<body>
<element1 attr1="atval11" attr2="val12" />
 <element1 attr1="atval21" attr2="val22" />
<element1 attr1="atval31" attr2="val32" />
 <element1 attr1="atval41" attr2="val42" />
</body>
</html>

I want to get documents that satisfy "attr1" value = "atval11" and
attr2="val12".

I used cts;element-attribute-value-query but it doesn't return expected
value for html documents.

Appreciate your feedback,

~Dev~
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://xqzone.marklogic.com/pipermail/general/attachments/20070810/b168a175/attachment.html


More information about the General mailing list