]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/file/magic/Magdir/sgml
- Copy stable/10@296371 to releng/10.3 in preparation for 10.3-RC1
[FreeBSD/releng/10.3.git] / contrib / file / magic / Magdir / sgml
1 #------------------------------------------------------------------------------ # $File: sgml,v 1.32 2015/07/11 15:08:53 christos Exp $
2 # Type: SVG Vectorial Graphics
3 # From: Noel Torres <tecnico@ejerciciosresueltos.com>
4 0       string          \<?xml\ version="
5 >15     string          >\0
6 >>19    search/4096     \<svg                   SVG Scalable Vector Graphics image
7 !:mime  image/svg+xml
8 >>19    search/4096     \<gnc-v2                GnuCash file
9 !:mime  application/x-gnucash
10
11 # Sitemap file
12 0       string/t                \<?xml\ version="
13 >15     string          >\0
14 >>19    search/4096     \<urlset                XML Sitemap document text
15 !:mime  application/xml-sitemap
16
17 # OpenStreetMap XML (.osm)
18 # http://wiki.openstreetmap.org/wiki/OSM_XML
19 # From: Markus Heidelberg <markus.heidelberg@web.de>
20 0       string          \<?xml\ version="
21 >15     string          >\0
22 >>19    search/4096     \<osm                   OpenStreetMap XML data
23
24 # xhtml
25 0       string/t                \<?xml\ version="
26 >19     search/4096/cWbt        \<!doctype\ html        XHTML document text
27 >>15    string          >\0     (version %.3s)
28 !:mime  text/html
29 0       string/t                \<?xml\ version='
30 >19     search/4096/cWbt        \<!doctype\ html        XHTML document text
31 >>15    string          >\0     (version %.3s)
32 !:mime  text/html
33 0       string/t                \<?xml\ version="
34 >19     search/4096/cWbt        \<html  broken XHTML document text
35 >>15    string          >\0     (version %.3s)
36 !:mime  text/html
37
38 #------------------------------------------------------------------------------
39 # sgml:  file(1) magic for Standard Generalized Markup Language
40 # HyperText Markup Language (HTML) is an SGML document type,
41 # from Daniel Quinlan (quinlan@yggdrasil.com)
42 # adapted to string extenstions by Anthon van der Neut <anthon@mnt.org)
43 0       search/4096/cWt \<!doctype\ html        HTML document text
44 !:mime  text/html
45 !:strength + 5
46
47 0       search/4096/cwt \<head\>                HTML document text
48 !:mime  text/html
49 !:strength + 5
50 0       search/4096/cWt \<head\                 HTML document text
51 !:mime  text/html
52 !:strength + 5
53 0       search/4096/cwt \<title\>               HTML document text
54 !:mime  text/html
55 !:strength + 5
56 0       search/4096/cWt \<title\                HTML document text
57 !:mime  text/html
58 !:strength + 5
59 0       search/4096/cwt \<html\>                HTML document text
60 !:mime  text/html
61 !:strength + 5
62 0       search/4096/cWt \<html\                 HTML document text
63 !:mime  text/html
64 !:strength + 5
65 0       search/4096/cwt \<script\>              HTML document text
66 !:mime  text/html
67 !:strength + 5
68 0       search/4096/cWt \<script\               HTML document text
69 !:mime  text/html
70 !:strength + 5
71 0       search/4096/cwt \<style\>               HTML document text
72 !:mime  text/html
73 !:strength + 5
74 0       search/4096/cWt \<style\                HTML document text
75 !:mime  text/html
76 !:strength + 5
77 0       search/4096/cwt \<table\>               HTML document text
78 !:mime  text/html
79 !:strength + 5
80 0       search/4096/cWt \<table\                HTML document text
81 !:mime  text/html
82 !:strength + 5
83
84 0       search/4096/cwt \<a\ href=              HTML document text
85 !:mime  text/html
86 !:strength + 5
87
88 # Extensible markup language (XML), a subset of SGML
89 # from Marc Prud'hommeaux (marc@apocalypse.org)
90 0       search/1/cwt    \<?xml                  XML document text
91 !:mime  application/xml
92 !:strength + 5
93 0       string/t                \<?xml\ version\ "      XML
94 !:mime  application/xml
95 !:strength + 5
96 0       string/t                \<?xml\ version="       XML
97 !:mime  application/xml
98 !:strength + 5
99 >15     string/t        >\0                     %.3s document text
100 >>23    search/1        \<xsl:stylesheet        (XSL stylesheet)
101 >>24    search/1        \<xsl:stylesheet        (XSL stylesheet)
102 0       string          \<?xml\ version='       XML
103 !:mime  application/xml
104 !:strength + 5
105 >15     string/t        >\0                     %.3s document text
106 >>23    search/1        \<xsl:stylesheet        (XSL stylesheet)
107 >>24    search/1        \<xsl:stylesheet        (XSL stylesheet)
108 0       search/1/wt     \<?XML                  broken XML document text
109 !:mime  application/xml
110 !:strength - 10
111
112
113 # SGML, mostly from rph@sq
114 0       search/4096/cwt \<!doctype              exported SGML document text
115 0       search/4096/cwt \<!subdoc               exported SGML subdocument text
116 0       search/4096/cwt \<!--                   exported SGML document text
117 !:strength - 10
118
119 # Web browser cookie files
120 # (Mozilla, Galeon, Netscape 4, Konqueror..)
121 # Ulf Harnhammar <ulfh@update.uu.se>
122 0       search/1        #\ HTTP\ Cookie\ File   Web browser cookie text
123 0       search/1        #\ Netscape\ HTTP\ Cookie\ File Netscape cookie text
124 0       search/1        #\ KDE\ Cookie\ File    Konqueror cookie text