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