I am using MarkLogic Content Pump to ingest XML documents. I would like to 
transform these xml documents in the mlcp ingestion process using “-tranform 
module and -transform namespace” option. I have already created the XSLT for 
the transformation and also loaded it into ML “modules" database. But mlcp is 
not accepting xslt file and throwing error:

COMMAND:
mlcp.sh import \
 -username $username -password $passwd \
 -host $host -port $port \
 -input_file_path $inpath \
 -input_compressed true \
 -input_file_type aggregates \
 -aggregate_record_element $splittag \
 -aggregate_uri_id $uriid \
 -aggregate_record_namespace "http://www.fda.gov/cdrh/gudid"; \
 -output_collections $collection \
 -output_permissions my-app-role,read,my-app-role,update \
 -output_uri_suffix .xml \
 -transform_module 
/marklogic.rest.transform/xml-transform-xsl/assets/transform.xsl \
 -transform_namespace 
"http://marklogic.com/rest-api/transform/xml-transform-xsl"; \
 -transform_function transform


Below error is thrown
ERROR:
15/09/27 15:34:19 WARN mapreduce.ContentWriter: XDMP-MODNOTTEXT: Module 
/marklogic.rest.transform/fda-transform-xsl/assets/transform.xsl is not a text 
document


I would like to know whether xslt transformation is accepted by mlcp? If not 
then what is the alternative.?


Thanks
Vishal
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to