[DAS2] Content type for DAS XML responses

Allen Day allenday at ucla.edu
Sat Dec 18 02:40:14 UTC 2004



On Fri, 17 Dec 2004, Chervitz, Steve wrote:

> Currently, the DAS/2 spec dictates that responses should have content-types
> like:
> 
>   application/x-das-source
>   application/x-das-types
>   application/x-das-region
> 
> Changing these to be 'text/xml' would be more convenient since the content
> would then be viewable in a standard web browser. This would also be good
> for backward compatibility with DAS/1 (where content-type is text/plain).
> 
> If we wanted, we could provide auxiliary information using attribute=value
> notation:
> 
>   text/xml; dasformat=source
>   text/xml; dasformat=types
>   text/xml; dasformat=region

are browsers going to choke on this?  will browsers render text/x-das-* as 
text instead of prompting with "Save As..."?

> 
> The corresponding compact content-types could be:
> 
>   text/plain; dasformat=compact-source
>   text/plain; dasformat=compact-types
>   text/plain; dasformat=compact-region
> 
> And other types could be:
> 
>   text/plain; dasformat=fasta
>   text/plain; dasformat=gff3
>   text/plain; dasformat=bed
> 
> Objections?

Certainly one of these is better than what we currently have.

-Allen

> 
> Steve
> 
> Refs: 
> http://www.w3.org/TR/xhtml-media-types/#text-xml
> http://www.iana.org/assignments/media-types/
> 
> 
> 
> _______________________________________________
> DAS2 mailing list
> DAS2 at portal.open-bio.org
> http://portal.open-bio.org/mailman/listinfo/das2
> 



More information about the DAS2 mailing list