xref: /minix/external/bsd/file/dist/magic/magdir/sgml (revision 84d9c625)
1#------------------------------------------------------------------------------
2# $File: sgml,v 1.29 2012/08/26 10:25:41 christos 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
39!:strength + 5
400	search/4096/cwt	\<head			HTML document text
41!:mime	text/html
42!:strength + 5
430	search/4096/cwt	\<title			HTML document text
44!:mime	text/html
45!:strength + 5
460	search/4096/cwt	\<html			HTML document text
47!:mime	text/html
48!:strength + 5
490	search/4096/cwt	\<script 		HTML document text
50!:mime	text/html
51!:strength + 5
520	search/4096/cwt	\<style 		HTML document text
53!:mime	text/html
54!:strength + 5
550	search/4096/cwt	\<table			HTML document text
56!:mime	text/html
57!:strength + 5
580	search/4096/cwt	\<a\ href=		HTML document text
59!:mime	text/html
60!:strength + 5
61
62# Extensible markup language (XML), a subset of SGML
63# from Marc Prud'hommeaux (marc@apocalypse.org)
640	search/1/cwt	\<?xml			XML document text
65!:mime	application/xml
66!:strength + 5
670	string/t		\<?xml\ version\ "	XML
68!:mime	application/xml
69!:strength + 5
700	string/t		\<?xml\ version="	XML
71!:mime	application/xml
72!:strength + 5
73>15	string/t	>\0			%.3s document text
74>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
75>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
760	string		\<?xml\ version='	XML
77!:mime	application/xml
78!:strength + 5
79>15	string/t	>\0			%.3s document text
80>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
81>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
820	search/1/wbt	\<?xml			XML document text
83!:mime	application/xml
84!:strength - 10
850	search/1/wt	\<?XML			broken XML document text
86!:mime	application/xml
87!:strength - 10
88
89
90# SGML, mostly from rph@sq
910	search/4096/cwt	\<!doctype		exported SGML document text
920	search/4096/cwt	\<!subdoc		exported SGML subdocument text
930	search/4096/cwt	\<!--			exported SGML document text
94!:strength - 10
95
96# Web browser cookie files
97# (Mozilla, Galeon, Netscape 4, Konqueror..)
98# Ulf Harnhammar <ulfh@update.uu.se>
990	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
1000	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
1010	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
102