Hi Pragya,
Try this: <a>{fn:data($x/a/@type)}</a>
Thanks
Revathi
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Pragya Kapoor
Sent: Friday, May 28, 2010 6:57 AM
To: [email protected]
Subject: [MarkLogic Dev General] extracting the attribute value
Hi,
I want to extract the value of attribute type. <a type="text"/>
I tried with
<a> {$x/a/@type}</a>
Output comes as:
<a type="text"/>
But I want the output as :
<a> text </a>
Any idea how to achieve this.
Thanks,
Pragya
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE
COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the
sender by email and delete all copies; your cooperation in this regard is
appreciated.
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general