All,
I am having a problem figuring out where I am going wrong with the
below on ML:
let $sampleArticle :=
<article>
<article-meta>
<related-article related-article-type="companion"
xlink:href="doc1" xmlns:xlink="http://www.w3.org/1999/xlink"/>
<related-article related-article-type="companion"
xlink:href="doc2" xmlns:xlink="http://www.w3.org/1999/xlink"/>
</article-meta>
</article>
Below is my snippet trying to retrieve doc1 & doc2 values of attribute
xlink:href
for $v in $sampleArticle/article/article-meta/related-article/@xlink:href
return $v
I see below error in logs:
*XDMP-DUPATTR: (err:XQDY0025) $v -- Two attributes with the same name*
Can someone educate me as to how to go about it!!?. I really appreciate
your help.
Thanks,
Srini
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general