xref: /freebsd/contrib/file/magic/Magdir/sgml (revision ae316d1d1cffd71ab7751f94e10118777a88e027)
140427ccaSGordon Tetlow
240427ccaSGordon Tetlow#------------------------------------------------------------------------------
3*ae316d1dSXin LI# $File: sgml,v 1.53 2024/11/10 14:48:55 christos Exp $
4b6cee71dSXin LI# Type:	SVG Vectorial Graphics
5b6cee71dSXin LI# From:	Noel Torres <tecnico@ejerciciosresueltos.com>
6*ae316d1dSXin LI0	string/bt	\<?xml\ version=
740427ccaSGordon Tetlow>14	regex		['"\ \t]*[0-9.]+['"\ \t]*
8b6cee71dSXin LI>>19	search/4096	\<svg			SVG Scalable Vector Graphics image
9*ae316d1dSXin LI!:strength +50
10b6cee71dSXin LI!:mime	image/svg+xml
11a2dfb722SXin LI!:ext   svg
12b6cee71dSXin LI>>19	search/4096	\<gnc-v2		GnuCash file
13b6cee71dSXin LI!:mime	application/x-gnucash
14*ae316d1dSXin LI0	string/bt	\<svg			SVG Scalable Vector Graphics image
15d38c30c0SXin LI!:mime	image/svg+xml
16a2dfb722SXin LI!:ext   svg
17b6cee71dSXin LI
1840427ccaSGordon Tetlow>14	regex		['"\ \t]*[0-9.]+['"\ \t]*
19*ae316d1dSXin LI# Sitemap file
20b6cee71dSXin LI>>19	search/4096	\<urlset		XML Sitemap document text
21b6cee71dSXin LI!:mime	application/xml-sitemap
22b6cee71dSXin LI
23*ae316d1dSXin LI# XML-based format representing braille pages in a digital format.
24*ae316d1dSXin LI#
25*ae316d1dSXin LI# Specification:
26*ae316d1dSXin LI# http://files.pef-format.org/specifications/pef-2008-1/pef-specification.html
27*ae316d1dSXin LI#
28*ae316d1dSXin LI# Simon Aittamaa <simon.aittamaa@gmail.com>
29*ae316d1dSXin LI>>19    search/4096	\<pef           Portable Embosser Format
30*ae316d1dSXin LI!:mime  application/x-pef+xml
31*ae316d1dSXin LI
32b6cee71dSXin LI# OpenStreetMap XML (.osm)
3348c779cdSXin LI# https://wiki.openstreetmap.org/wiki/OSM_XML
34b6cee71dSXin LI# From: Markus Heidelberg <markus.heidelberg@web.de>
35b6cee71dSXin LI>>19	search/4096	\<osm			OpenStreetMap XML data
36b6cee71dSXin LI
37b6cee71dSXin LI# xhtml
389ce06829SXin LI>19	search/4096/cWbt	\<!doctype\ html	XHTML document text
399ce06829SXin LI>>15	string		>\0	(version %.3s)
40*ae316d1dSXin LI!:strength + 15
41*ae316d1dSXin LI!:mime	application/xhtml+xml
42*ae316d1dSXin LI
43*ae316d1dSXin LI>19	search/4096/cWbt	\<html\ xmlns=		XHTML document text
449ce06829SXin LI>>15	string		>\0	(version %.3s)
45*ae316d1dSXin LI!:mime	application/xhtml+xml
46*ae316d1dSXin LI
47b6cee71dSXin LI
48b6cee71dSXin LI#------------------------------------------------------------------------------
49b6cee71dSXin LI# sgml:  file(1) magic for Standard Generalized Markup Language
50b6cee71dSXin LI# HyperText Markup Language (HTML) is an SGML document type,
51b6cee71dSXin LI# from Daniel Quinlan (quinlan@yggdrasil.com)
5243a5ec4eSXin LI# adapted to string extensions by Anthon van der Neut <anthon@mnt.org)
53b6cee71dSXin LI0	search/4096/cWt	\<!doctype\ html	HTML document text
54b6cee71dSXin LI!:mime	text/html
55b6cee71dSXin LI!:strength + 5
565f0216bdSXin LI
57898496eeSXin LI# avoid misdetection as JavaScript
58898496eeSXin LI0	string/cWt	\<!doctype\ html	HTML document text
59898496eeSXin LI!:mime	text/html
60*ae316d1dSXin LI!:strength + 30
61898496eeSXin LI0	string/ct	\<html>	HTML document text
62898496eeSXin LI!:mime	text/html
63*ae316d1dSXin LI!:strength + 30
64898496eeSXin LI0	string/ct	\<!--
65898496eeSXin LI>&0	search/4096/cWt	\<!doctype\ html	HTML document text
66898496eeSXin LI!:mime	text/html
67*ae316d1dSXin LI!:strength + 30
68898496eeSXin LI>&0	search/4096/ct	\<html>	HTML document text
69898496eeSXin LI!:mime	text/html
70898496eeSXin LI
7140427ccaSGordon Tetlow# SVG document
7240427ccaSGordon Tetlow# https://www.w3.org/TR/SVG/single-page.html
7340427ccaSGordon Tetlow0	search/4096/cWbt	\<!doctype\ svg	SVG XML document
7440427ccaSGordon Tetlow!:mime  image/svg+xml
75*ae316d1dSXin LI!:strength + 30
7640427ccaSGordon Tetlow
775f0216bdSXin LI0	search/4096/cwt	\<head\>		HTML document text
78b6cee71dSXin LI!:mime	text/html
79*ae316d1dSXin LI!:strength + 30
805f0216bdSXin LI0	search/4096/cWt	\<head\ 		HTML document text
81b6cee71dSXin LI!:mime	text/html
82*ae316d1dSXin LI!:strength + 30
835f0216bdSXin LI0	search/4096/cwt	\<title\>		HTML document text
84b6cee71dSXin LI!:mime	text/html
85*ae316d1dSXin LI!:strength + 30
865f0216bdSXin LI0	search/4096/cWt	\<title\ 		HTML document text
87b6cee71dSXin LI!:mime	text/html
88*ae316d1dSXin LI!:strength + 30
895f0216bdSXin LI0	search/4096/cwt	\<html\>		HTML document text
90b6cee71dSXin LI!:mime	text/html
91*ae316d1dSXin LI!:strength + 30
925f0216bdSXin LI0	search/4096/cWt	\<html\ 		HTML document text
93b6cee71dSXin LI!:mime	text/html
94*ae316d1dSXin LI!:strength + 30
955f0216bdSXin LI0	search/4096/cwt	\<script\> 		HTML document text
965f0216bdSXin LI!:mime	text/html
97*ae316d1dSXin LI!:strength + 30
985f0216bdSXin LI0	search/4096/cWt	\<script\ 		HTML document text
995f0216bdSXin LI!:mime	text/html
100*ae316d1dSXin LI!:strength + 30
1015f0216bdSXin LI0	search/4096/cwt	\<style\> 		HTML document text
1025f0216bdSXin LI!:mime	text/html
103*ae316d1dSXin LI!:strength + 30
1045f0216bdSXin LI0	search/4096/cWt	\<style\  		HTML document text
1055f0216bdSXin LI!:mime	text/html
106*ae316d1dSXin LI!:strength + 30
1075f0216bdSXin LI0	search/4096/cwt	\<table\>		HTML document text
1085f0216bdSXin LI!:mime	text/html
109*ae316d1dSXin LI!:strength + 30
1105f0216bdSXin LI0	search/4096/cWt	\<table\ 		HTML document text
1115f0216bdSXin LI!:mime	text/html
112*ae316d1dSXin LI!:strength + 30
1135f0216bdSXin LI
114b6cee71dSXin LI0	search/4096/cwt	\<a\ href=		HTML document text
115b6cee71dSXin LI!:mime	text/html
116*ae316d1dSXin LI!:strength + 30
117*ae316d1dSXin LI
118*ae316d1dSXin LI# Microsoft HTML Application (HTA)
119*ae316d1dSXin LI# https://learn.microsoft.com/en-us/previous-versions//ms536496(v=vs.85)
120*ae316d1dSXin LI0	search/4096/cWt	\<hta:application\ 	Microsoft HTML Application (HTA)
121*ae316d1dSXin LI!:mime	application/hta
122*ae316d1dSXin LI!:ext	hta
123*ae316d1dSXin LI!:strength + 50
124b6cee71dSXin LI
125b6cee71dSXin LI# Extensible markup language (XML), a subset of SGML
126b6cee71dSXin LI# from Marc Prud'hommeaux (marc@apocalypse.org)
127b6cee71dSXin LI0	search/1/cwt	\<?xml			XML document text
1283e41d09dSXin LI!:mime	text/xml
129*ae316d1dSXin LI!:strength + 30
130b6cee71dSXin LI0	string/t		\<?xml\ version="	XML
1313e41d09dSXin LI!:mime	text/xml
132*ae316d1dSXin LI!:strength + 30
133b6cee71dSXin LI>15	string/t	>\0			%.3s document text
134b6cee71dSXin LI>>23	search/1	\<xsl:stylesheet	(XSL stylesheet)
135b6cee71dSXin LI>>24	search/1	\<xsl:stylesheet	(XSL stylesheet)
136*ae316d1dSXin LI
137b6cee71dSXin LI0	search/1/wt	\<?XML			broken XML document text
1383e41d09dSXin LI!:mime	text/xml
139b6cee71dSXin LI!:strength - 10
140b6cee71dSXin LI
141b6cee71dSXin LI
142b6cee71dSXin LI# SGML, mostly from rph@sq
143b6cee71dSXin LI0	search/4096/cwt	\<!doctype		exported SGML document text
144b6cee71dSXin LI0	search/4096/cwt	\<!subdoc		exported SGML subdocument text
145b6cee71dSXin LI0	search/4096/cwt	\<!--			exported SGML document text
146b6cee71dSXin LI!:strength - 10
147b6cee71dSXin LI
148b6cee71dSXin LI# Web browser cookie files
149b6cee71dSXin LI# (Mozilla, Galeon, Netscape 4, Konqueror..)
150b6cee71dSXin LI# Ulf Harnhammar <ulfh@update.uu.se>
151b6cee71dSXin LI0	search/1	#\ HTTP\ Cookie\ File	Web browser cookie text
152b6cee71dSXin LI0	search/1	#\ Netscape\ HTTP\ Cookie\ File	Netscape cookie text
153b6cee71dSXin LI0	search/1	#\ KDE\ Cookie\ File	Konqueror cookie text
15458a0f0d0SEitan Adler
155a4d6d3b8SXin LI
156a4d6d3b8SXin LI# https://www.qgis.org/en/site/
157a4d6d3b8SXin LI0	string		\<!DOCTYPE\040qgis	QGIS XML document
158