From: Thomas Leonard <tal@ec...> - 2005-07-14 07:11:18
----- Forwarded message from Christopher James Lahey <clahey@...> -----
Subject: docbook mime type detection
From: Christopher James Lahey <clahey@...>
Date: Wed, 13 Jul 2005 16:25:32 -0400
I'm trying to figure out how to make the shared mime database detect the
mime type of docbook files. I found the section where xml files can be
identified by namespace and root element name, but docbook appears to
not use a namespace. Could this be extended to include checking the uri
of the doctype? Perhaps alternatively we could check the pubid of the
external entity of the doctype?
Alternatively, is it possible to specify an empty namespace and just
specify the localname? That way any xml docs that match as <article> or
<book> would just be labeled as docbook.
How do you suggest I go forward on this?
----- End forwarded message -----
Dr Thomas Leonard http://rox.sourceforge.net
GPG: 9242 9807 C985 3C07 44A6 8B9A AE07 8280 59A5 3CC1
Get latest updates about Open Source Projects, Conferences and News.