W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2009

RE: Content-type vs. media-type?

From: <Toman_Vojtech@emc.com>
Date: Tue, 28 Apr 2009 03:38:08 -0400
Message-ID: <6E216CCE0679B5489A61125D0EFEC7870F64608E@CORPUSMX10A.corp.emc.com>
To: <xproc-dev@w3.org>
I agree this can be quite confusing. I think that the XProc spec sticks
with 'content-type' where possible. As for p:escape-markup (and a couple
of other steps such as p:http-request, p:exec, ...), it applies XML
serialization to the input document, and 'media-type' is the name of one
of the serialization properties in the XML Serialization spec. Renaming
'media-type' (the serialization parameter) to 'content-type' would cause
additional confusion, IMHO.


	From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org]
On Behalf Of Leif Warner
	Sent: Tuesday, April 28, 2009 9:29 AM
	To: XProc Dev
	Subject: Content-type vs. media-type?
	I was just wondering if there was a difference between the
"content-type" name versus the name "media-type"; I see both used
throughout the spec, and have a hard time keeping track of which step
calls for which version of the name.  
	E.g. p:unescape-markup has the "content-type" option, while
p:escape-markup has the "media-type" option.
	Is the difference just "media-type" is used to set a
characteristic of outgoing content, while "content-type" is a
characteristic of incoming content?
	-Leif Warner
Received on Tuesday, 28 April 2009 07:38:55 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:04 UTC