xref: /dragonfly/contrib/file/magic/Magdir/sgml (revision 2020c8fe)
1#------------------------------------------------------------------------------
2# $File: sgml,v 1.27 2011/12/07 12:01:24 rrt Exp $
3# Type:	SVG Vectorial Graphics
4# From:	Noel Torres <tecnico@ejerciciosresueltos.com>
50	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
130	string/t		\<?xml\ version="
14>15	string		>\0
15>>19	search/4096	\<urlset		XML Sitemap document text
16!:mime	application/xml-sitemap
17
18# xhtml
190	string/t		\<?xml\ version="
20>15	string		>\0
21>>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
22!:mime	text/html
230	string/t		\<?xml\ version='
24>15	string		>\0
25>>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
26!:mime	text/html
270	string/t		\<?xml\ version="
28>15	string		>\0
29>>19	search/4096/cWbt	\<html	broken XHTML document text
30!:mime	text/html
31
32#------------------------------------------------------------------------------
33# sgml:  file(1) magic for Standard Generalized Markup Language
34# HyperText Markup Language (HTML) is an SGML document type,
35# from Daniel Quinlan (quinlan@yggdrasil.com)
36# adapted to string extenstions by Anthon van der Neut <anthon@mnt.org)
370	search/4096/cWt	\<!doctype\ html	HTML document text
38!:mime	text/html
390	search/4096/cwt	\<head			HTML document text
40!:mime	text/html
410	search/4096/cwt	\<title			HTML document text
42!:mime	text/html
430	search/4096/cwt	\<html			HTML document text
44!:mime	text/html
450	search/4096/cwt	\<script 		HTML document text
46!:mime	text/html
470	search/4096/cwt	\<style 		HTML document text
48!:mime	text/html
490	search/4096/cwt	\<table			HTML document text
50!:mime	text/html
510	search/4096/cwt	\<a\ href=		HTML document text
52!:mime	text/html
53
54# Extensible markup language (XML), a subset of SGML
55# from Marc Prud'hommeaux (marc@apocalypse.org)
560	search/1/cwt	\<?xml			XML document text
57!:mime	application/xml
580	string/t		\<?xml\ version\ "	XML
59!:mime	application/xml
600	string/t		\<?xml\ version="	XML
61!:mime	application/xml
62>15	search/1	>\0			%.3s document text
63>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
64>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
650	string		\<?xml\ version='	XML
66!:mime	application/xml
67>15	search/1	>\0			%.3s document text
68>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
69>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
700	search/1/wbt	\<?xml			XML document text
71!:mime	application/xml
72!:strength - 10
730	search/1/wt	\<?XML			broken XML document text
74!:mime	application/xml
75!:strength - 10
76
77
78# SGML, mostly from rph@sq
790	search/4096/cwt	\<!doctype		exported SGML document text
800	search/4096/cwt	\<!subdoc		exported SGML subdocument text
810	search/4096/cwt	\<!--			exported SGML document text
82!:strength - 10
83
84# Web browser cookie files
85# (Mozilla, Galeon, Netscape 4, Konqueror..)
86# Ulf Harnhammar <ulfh@update.uu.se>
870	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
880	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
890	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
90