[ 
https://issues.apache.org/jira/browse/TIKA-784?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13152915#comment-13152915
 ] 

Nick Burch commented on TIKA-784:
---------------------------------

In r1203689, I've added a parent DITA type, using the official mimetype, along 
with three subtypes. For each subtype, we have a glob and the xml root element. 

With this, we can correctly detect the type, as checked by some new unit tests

For now, I've invented mimetypes for the subtypes, but we might decide we want 
to have them all use the official type with parameters instead?
                
> Mimetype entry for DITA
> -----------------------
>
>                 Key: TIKA-784
>                 URL: https://issues.apache.org/jira/browse/TIKA-784
>             Project: Tika
>          Issue Type: Improvement
>          Components: mime
>    Affects Versions: 1.0
>            Reporter: Nick Burch
>
> Currently, we don't have mimetype entries for DITA. There is a provisional 
> mimetype
> According to 
> http://docs.oasis-open.org/dita/v1.2/cs01/spec/non-normative/DITA-mime-type.html
>  there is a provisional mimetype of "application/dita+xml" for DITA files
> There are then three kinds of DITA file, which apparently all use the same 
> mimetype:
>  DITA Topic - .dita
>  DITA Map - .ditamap
>  DITA Conditional Processing Profile - .ditaval
> DITA is XML based, so we should be able to do XML detection in addition to 
> filename matching

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to