xref: /freebsd/contrib/file/magic/Magdir/sgml (revision 0f7f3352c8bc463607912e2463d13e52d44a4cae)
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>
40	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
100	string		\<svg			SVG Scalable Vector Graphics image
11!:mime	image/svg
12
13# Sitemap file
140	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>
220	string		\<?xml\ version="
23>15	string		>\0
24>>19	search/4096	\<osm			OpenStreetMap XML data
25
26# xhtml
270	string/t		\<?xml\ version="
28>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
29>>15	string		>\0	(version %.3s)
30!:mime	text/html
310	string/t		\<?xml\ version='
32>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
33>>15	string		>\0	(version %.3s)
34!:mime	text/html
350	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)
450	search/4096/cWt	\<!doctype\ html	HTML document text
46!:mime	text/html
47!:strength + 5
48
490	search/4096/cwt	\<head\>		HTML document text
50!:mime	text/html
51!:strength + 5
520	search/4096/cWt	\<head\ 		HTML document text
53!:mime	text/html
54!:strength + 5
550	search/4096/cwt	\<title\>		HTML document text
56!:mime	text/html
57!:strength + 5
580	search/4096/cWt	\<title\ 		HTML document text
59!:mime	text/html
60!:strength + 5
610	search/4096/cwt	\<html\>		HTML document text
62!:mime	text/html
63!:strength + 5
640	search/4096/cWt	\<html\ 		HTML document text
65!:mime	text/html
66!:strength + 5
670	search/4096/cwt	\<script\> 		HTML document text
68!:mime	text/html
69!:strength + 5
700	search/4096/cWt	\<script\ 		HTML document text
71!:mime	text/html
72!:strength + 5
730	search/4096/cwt	\<style\> 		HTML document text
74!:mime	text/html
75!:strength + 5
760	search/4096/cWt	\<style\  		HTML document text
77!:mime	text/html
78!:strength + 5
790	search/4096/cwt	\<table\>		HTML document text
80!:mime	text/html
81!:strength + 5
820	search/4096/cWt	\<table\ 		HTML document text
83!:mime	text/html
84!:strength + 5
85
860	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)
920	search/1/cwt	\<?xml			XML document text
93!:mime	text/xml
94!:strength + 5
950	string/t		\<?xml\ version\ "	XML
96!:mime	text/xml
97!:strength + 5
980	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)
1040	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)
1100	search/1/wt	\<?XML			broken XML document text
111!:mime	text/xml
112!:strength - 10
113
114
115# SGML, mostly from rph@sq
1160	search/4096/cwt	\<!doctype		exported SGML document text
1170	search/4096/cwt	\<!subdoc		exported SGML subdocument text
1180	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>
1240	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
1250	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
1260	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
127