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