Hi,
We are exploring Contentpump in ML version6.
We have a scenario where we need to split an XML based on an element(plan)
and we are using aggregate to acheive this,but while naming output
documents we are facing problem as we have an id attribute at multiple
places,and *aggregate_uri_id* is picking the last occurance and naming with
that value. Please find the samples below.
*Sample XML:*
<plans>
<plan id="1">
<title>abc</title>
<author id="11">xyz</author>
</plan>
<plan id="2">
<title>def</title>
<author id="22">lmn</author>
</plan>
......
</plans>
*Command*
mlcp.bat import -host localhost -port 8006 -username admin ^
-password admin -input_file_path D:\Grade.xml ^
-mode local -input_file_type aggregates -aggregate_record_element plan ^
-aggregate_uri_id @id <lesson_plan/@id> -output_uri_prefix /plan/ ^
-output_uri_suffix .xml -output_collections PLAN
*Actual:*
/plan/11.xml
/plan/22.xml
*Expected:*
/plan/1.xml
/plan/2.xml
Thanks & Regards,
Rajesh
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general