diff xmlstarlet.xml @ 0:4a9ac1df3278 draft default tip

"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
author ecology
date Sun, 06 Mar 2022 22:10:31 +0000
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/xmlstarlet.xml	Sun Mar 06 22:10:31 2022 +0000
@@ -0,0 +1,54 @@
+<tool id="xmlstarlet" name="xmlstarlet" version="1.6.1">
+    <description>convert a metadata XML file in one standard to another</description>
+    <requirements>
+        <requirement type="package" version="1.6.1">xmlstarlet</requirement>
+    </requirements>
+    <command detect_errors="exit_code"><![CDATA[
+xml tr '$xsl' '$input' > '$output'
+    ]]>
+    </command>
+    <inputs>
+        <param name="input" type="data" format="xml" label="input xml file to convert" help="A xml file corresponding to a xsd schema you want to convert in another." />
+        <param name="xsl" type="data" format="xml" label="input xsl convertion file" help="A xsl file describing the mapping between a first xsd specification to another." />
+    </inputs>
+    <outputs>
+        <data name="output" format="xml" label="${tool.name} on ${on_string}: Converted xml" />
+    </outputs>
+    <tests>
+        <!-- Ensure conversion works -->
+        <test expect_num_outputs="1">
+            <param name="input" value="input_standardiso19115.xml" ftype="xml"/>
+            <param name="xsl" value="iso2eml_all_in_one.xsl" ftype="xml"/>
+            <output name="output" file="output_standardEML.xml" />
+        </test>
+    </tests>
+    <help>
+
+.. class:: infomark
+
+**What it does**
+
+This tool converts a xml file to another using a xsl coversion file to specify the translation to be done, from a wsd schema to another.
+
+-----
+
+**Inputs**
+
+A xml metadata file using a standard (for exemple EML, ISO19115,...) and a xsl file describing the mapping between the standard terms from input file and terms of the searched output standard.
+
+-----
+
+**Outputs**
+
+A xml metadata file using a new standard (for example ISO19115, EML, ...).
+   </help>
+   <citations>
+       <citation type="bibtex">@ARTICLE{Kim07aninterior-point,
+       author = {Mikhail Grushinskiy},
+       title = {XMLStarlet Command Line XML Toolkit},
+       howpublished = "\url{http://xmlstar.sourceforge.net/}",
+       year = {2021},
+       note = "{online; accessed 08-November-2021}"
+       }</citation>
+   </citations>
+</tool>