Hi,
I am trying the following query
let $xml := <metadata>
<biblioCore>
<assetTitles>
<assetTitle>
<assetTitleLanguage>EN-English</assetTitleLanguage>
<assetTitleType>Main</assetTitleType>
<assetTitleText>Lubricants, industrial oils
and related products (Class L) Family X (Greases) Specification</assetTitleText>
</assetTitle>
</assetTitles>
</biblioCore>
</metadata>
let $path := "/descendant::assetTitle[xs:string(child::assetTitleLanguage) eq
'EN-English']"
return $xml/xdmp:value($path)
This returns me the following structure
<assetTitle>
<assetTitleLanguage>EN-English</assetTitleLanguage>
<assetTitleType>Main</assetTitleType>
<assetTitleText>Lubricants, industrial oils and related products (Class L)
Family X (Greases) Specification</assetTitleText>
</assetTitle>
But when I change the $path to
$path = "/descendant::assetTitle[xs:string(child::assetTitleLanguage) eq
'EN-English1']"
It will return me no result, which is correct.
Is there any way to find the xpath being evaluated(for e.g.
metadata/biblioCore/assetTitles/assetTitle in this case) or I get to know the
path upto the parent node which exists.
Regards,
Devesh
"This e-mail and any attachments transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential , proprietary or
privileged information. If you are not the intended recipient, please contact
the sender by reply e-mail and destroy all copies of the original message. Any
unauthorized review, use, disclosure, dissemination, forwarding, printing or
copying of this e-mail or any action taken in reliance on this e-mail is
strictly prohibited and may be unlawful."
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general