Hi Vishal,

How did you ingest the XSLT stylesheets?  What is their formats?  You
can check it by going to QConsole, select the module database as the
"Content Source" and click "Explore", find your stylesheets and look
at the second column, called "Format".  It should be either "E" for
element (or XML), "B" for binary or T for text.

Regards,

-- 
Florent Georges
http://fgeorges.org/
http://h2oconsulting.be/


On 27 September 2015 at 21:40, Tahiliani, Vishal wrote:
> 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
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to