| 1 |
Here you find some XSL transformation scripts for processing mime |
| 2 |
type definitions in XML format as defined by the Shared MIME-info Database |
| 3 |
specification [1] |
| 4 |
|
| 5 |
xdg-mime actually embeds a version of these scripts, the versions in this |
| 6 |
directory are for entertainment purposes only |
| 7 |
|
| 8 |
[1] http://www.freedesktop.org/wiki/Standards/shared-mime-info-spec |
| 9 |
=== |
| 10 |
Command: xsltproc sharedmime-list.xsl input-file.xml |
| 11 |
|
| 12 |
Lists all mimetypes contained in a shared mime Database XML input file |
| 13 |
=== |
| 14 |
Command: xsltproc --stringparam type mime/type \ |
| 15 |
--stringparam source input-file.xml \ |
| 16 |
sharedmime2mimelnk.xsl /path/to/input-file.xml |
| 17 |
|
| 18 |
Converts the mimetype "mime/type" contained in a shared mime Database XML |
| 19 |
input file into KDE's mimelnk format. |
| 20 |
=== |
| 21 |
TODO: |
| 22 |
* Add support for magic entries and convert to KDE magic chunks in |
| 23 |
share/config/magic/* |