File: README

package info (click to toggle)
xdg-utils 1.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,652 kB
  • sloc: sh: 8,244; xml: 3,474; perl: 335; makefile: 188; awk: 41
file content (23 lines) | stat: -rw-r--r-- 865 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Here you find some XSL transformation scripts for processing mime
type definitions in XML format as defined by the Shared MIME-info Database
specification [1]

xdg-mime actually embeds a version of these scripts, the versions in this
directory are for entertainment purposes only

[1] http://www.freedesktop.org/wiki/Standards/shared-mime-info-spec
===
Command: xsltproc sharedmime-list.xsl input-file.xml

Lists all mimetypes contained in a shared mime Database XML input file
===
Command: xsltproc --stringparam type mime/type \
                  --stringparam source input-file.xml \
                  sharedmime2mimelnk.xsl /path/to/input-file.xml

Converts the mimetype "mime/type" contained in a shared mime Database XML
input file into KDE's mimelnk format.
===
TODO:
* Add support for magic entries and convert to KDE magic chunks in
  share/config/magic/*