xref: /freebsd/contrib/file/magic/Magdir/sgml (revision 59e2ff550c448126b988150ce800cdf73bb5103e)
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>
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
10
11# Sitemap file
120	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>
200	string		\<?xml\ version="
21>15	string		>\0
22>>19	search/4096	\<osm			OpenStreetMap XML data
23
24# xhtml
250	string/t		\<?xml\ version="
26>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
27>>15	string		>\0	(version %.3s)
28!:mime	text/html
290	string/t		\<?xml\ version='
30>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
31>>15	string		>\0	(version %.3s)
32!:mime	text/html
330	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)
430	search/4096/cWt	\<!doctype\ html	HTML document text
44!:mime	text/html
45!:strength + 5
46
470	search/4096/cwt	\<head\>		HTML document text
48!:mime	text/html
49!:strength + 5
500	search/4096/cWt	\<head\ 		HTML document text
51!:mime	text/html
52!:strength + 5
530	search/4096/cwt	\<title\>		HTML document text
54!:mime	text/html
55!:strength + 5
560	search/4096/cWt	\<title\ 		HTML document text
57!:mime	text/html
58!:strength + 5
590	search/4096/cwt	\<html\>		HTML document text
60!:mime	text/html
61!:strength + 5
620	search/4096/cWt	\<html\ 		HTML document text
63!:mime	text/html
64!:strength + 5
650	search/4096/cwt	\<script\> 		HTML document text
66!:mime	text/html
67!:strength + 5
680	search/4096/cWt	\<script\ 		HTML document text
69!:mime	text/html
70!:strength + 5
710	search/4096/cwt	\<style\> 		HTML document text
72!:mime	text/html
73!:strength + 5
740	search/4096/cWt	\<style\  		HTML document text
75!:mime	text/html
76!:strength + 5
770	search/4096/cwt	\<table\>		HTML document text
78!:mime	text/html
79!:strength + 5
800	search/4096/cWt	\<table\ 		HTML document text
81!:mime	text/html
82!:strength + 5
83
840	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)
900	search/1/cwt	\<?xml			XML document text
91!:mime	application/xml
92!:strength + 5
930	string/t		\<?xml\ version\ "	XML
94!:mime	application/xml
95!:strength + 5
960	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)
1020	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)
1080	search/1/wt	\<?XML			broken XML document text
109!:mime	application/xml
110!:strength - 10
111
112
113# SGML, mostly from rph@sq
1140	search/4096/cwt	\<!doctype		exported SGML document text
1150	search/4096/cwt	\<!subdoc		exported SGML subdocument text
1160	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>
1220	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
1230	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
1240	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
125