xref: /dragonfly/contrib/file/magic/Magdir/sgml (revision 9348a738)
1#------------------------------------------------------------------------------
2# $File: sgml,v 1.30 2013/12/21 14:27:24 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# OpenStreetMap XML (.osm)
19# http://wiki.openstreetmap.org/wiki/OSM_XML
20# From: Markus Heidelberg <markus.heidelberg@web.de>
210	string		\<?xml\ version="
22>15	string		>\0
23>>19	search/4096	\<osm			OpenStreetMap XML data
24
25# xhtml
260	string/t		\<?xml\ version="
27>15	string		>\0
28>>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
29!:mime	text/html
300	string/t		\<?xml\ version='
31>15	string		>\0
32>>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
33!:mime	text/html
340	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)
440	search/4096/cWt	\<!doctype\ html	HTML document text
45!:mime	text/html
46!:strength + 5
470	search/4096/cwt	\<head			HTML document text
48!:mime	text/html
49!:strength + 5
500	search/4096/cwt	\<title			HTML document text
51!:mime	text/html
52!:strength + 5
530	search/4096/cwt	\<html			HTML document text
54!:mime	text/html
55!:strength + 5
560	search/4096/cwt	\<script 		HTML document text
57!:mime	text/html
58!:strength + 5
590	search/4096/cwt	\<style 		HTML document text
60!:mime	text/html
61!:strength + 5
620	search/4096/cwt	\<table			HTML document text
63!:mime	text/html
64!:strength + 5
650	search/4096/cwt	\<a\ href=		HTML document text
66!:mime	text/html
67!:strength + 5
68
69# Extensible markup language (XML), a subset of SGML
70# from Marc Prud'hommeaux (marc@apocalypse.org)
710	search/1/cwt	\<?xml			XML document text
72!:mime	application/xml
73!:strength + 5
740	string/t		\<?xml\ version\ "	XML
75!:mime	application/xml
76!:strength + 5
770	string/t		\<?xml\ version="	XML
78!:mime	application/xml
79!:strength + 5
80>15	string/t	>\0			%.3s document text
81>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
82>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
830	string		\<?xml\ version='	XML
84!:mime	application/xml
85!:strength + 5
86>15	string/t	>\0			%.3s document text
87>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
88>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
890	search/1/wbt	\<?xml			XML document text
90!:mime	application/xml
91!:strength - 10
920	search/1/wt	\<?XML			broken XML document text
93!:mime	application/xml
94!:strength - 10
95
96
97# SGML, mostly from rph@sq
980	search/4096/cwt	\<!doctype		exported SGML document text
990	search/4096/cwt	\<!subdoc		exported SGML subdocument text
1000	search/4096/cwt	\<!--			exported SGML document text
101!:strength - 10
102
103# Web browser cookie files
104# (Mozilla, Galeon, Netscape 4, Konqueror..)
105# Ulf Harnhammar <ulfh@update.uu.se>
1060	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
1070	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
1080	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
109