You can set whatever mimetype you'd care to. The template driver makes no
assumptions in that regard...

Steve

>>> On 10/23/2009 at 10:37 AM, in message
<[email protected]>, Ted Spradley
<[email protected]> wrote:

> Sorry, included link to the IANA RFC ...
> http://www.rfc-editor.org/rfc/rfc4329.txt 
> 
> 
> Ted Spradley wrote:
>> 
>> Steve, 
>> 
>> Regarding the MIMETYPE directive of OUTPUTFORMAT, I was just reading
>> RFC-4329 (http://www.rfc-editor.org/rfc/rfc4329.txt) that was marking the
>> mimetype 'text/javascript' as obsolete, preferring mimetype
>> 'application/javascript'.  Is use of both mimetypes interchangeable for
>> MapServer?
>> 
>> Thanks, Ted S.
>> 
>> Steve Lime wrote:
>>> 
>>> 
>>> The TEMPLATE keyword is still used to make layers queryable. That may
>>> change
>>> in the future. Simple using something like TEMPLATE 'dummy' will suffice.
>>> 
>>>>> The OUTPUTFORMAT:
>>>>> 
>>>>> OUTPUTFORMAT
>>>>>     NAME 'county_select_list'
>>>>>     DRIVER 'TEMPLATE'
>>>>>     MIMETYPE 'text/javascript'
>>>>>     FORMATOPTION 'ATTACHMENT=county_select_list.js'
>>>>>     FORMATOPTION 'FILE=/templates/demo_county_select_list.js'
>>>>> END
>>>> 
>>>> What is the difference in ATTACHMENT and FILE?
>>> 
>>> 
>> 
>> 

_______________________________________________
mapserver-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapserver-users

Reply via email to