Mercurial > repos > ecology > xmlstarlet
annotate 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 |
rev | line source |
---|---|
0
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
1 <tool id="xmlstarlet" name="xmlstarlet" version="1.6.1"> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
2 <description>convert a metadata XML file in one standard to another</description> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
3 <requirements> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
4 <requirement type="package" version="1.6.1">xmlstarlet</requirement> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
5 </requirements> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
6 <command detect_errors="exit_code"><![CDATA[ |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
7 xml tr '$xsl' '$input' > '$output' |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
8 ]]> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
9 </command> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
10 <inputs> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
11 <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." /> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
12 <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." /> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
13 </inputs> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
14 <outputs> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
15 <data name="output" format="xml" label="${tool.name} on ${on_string}: Converted xml" /> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
16 </outputs> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
17 <tests> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
18 <!-- Ensure conversion works --> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
19 <test expect_num_outputs="1"> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
20 <param name="input" value="input_standardiso19115.xml" ftype="xml"/> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
21 <param name="xsl" value="iso2eml_all_in_one.xsl" ftype="xml"/> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
22 <output name="output" file="output_standardEML.xml" /> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
23 </test> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
24 </tests> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
25 <help> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
26 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
27 .. class:: infomark |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
28 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
29 **What it does** |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
30 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
31 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. |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
32 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
33 ----- |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
34 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
35 **Inputs** |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
36 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
37 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. |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
38 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
39 ----- |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
40 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
41 **Outputs** |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
42 |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
43 A xml metadata file using a new standard (for example ISO19115, EML, ...). |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
44 </help> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
45 <citations> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
46 <citation type="bibtex">@ARTICLE{Kim07aninterior-point, |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
47 author = {Mikhail Grushinskiy}, |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
48 title = {XMLStarlet Command Line XML Toolkit}, |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
49 howpublished = "\url{http://xmlstar.sourceforge.net/}", |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
50 year = {2021}, |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
51 note = "{online; accessed 08-November-2021}" |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
52 }</citation> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
53 </citations> |
4a9ac1df3278
"planemo upload for repository https://github.com/galaxyecology/tools-ecology/tree/main/tools-ecology/tools/xmlstarlet commit 6ebe0c98dd0d727b9202422e64f6d5f7697743fb"
ecology
parents:
diff
changeset
|
54 </tool> |