This seciton is informative
Scenario 1
UA Supports: XHTML+SVG+XForms
Content is: XHTML+SVG
Scenario 2
UA Supports: XHTML+SVG
Content is: XHTML+SVG+XForms
CDI Profiles SHOULD define a filename suffix for identification by authoring tools and content providers.
CDI compliant content MUST provide metadata for framework or profile identification.
To indentify which profile is supported, they MUST be defined in the
CDF
XML processing
instruction [XML] such as:
<?CDF profile="profile-uri"?>
In the case of existing mechanisms such as DOCTYPE
on HTML,
the CDF
XML processing instruction MUST take precendence.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <?CDF profile="http://www.w3.org/2006/CDF/WICD"?>
In the case of usage of xsi:schemaLocation
with CDF
PI, xsi:schemaLocation
take precendence for schema resolution for validation
CDI Profiles MUST define a MIME Type [MIME] which should be used to identify it using HTTP 1.1 Content-Type header.
CDI compliant user agents MUST supply in the HTTP Accept
header
the list of supported internet media types
User agents that are conformant to the CDI Framework MUST provide the
application/cdf+xml
internet media type in the HTTP Accept
header.
This internet media type will have a prof
parameter to allow
for the definition of CDF profiles. The value of the prof
parameter
will be the URI that a CDF profile defines. For W3C defined profiles, the
value should be of the form http://www.w3.org/<year<[/<month>][/<group>]/<profile name>
.
This will provide enable detail for identification and versioning of profiles.
This URI value should not be changed for minor version updates that are
compatible. Only when major revision changes occur that introduce
incompatibilities should the profile URI be changed.
As CDF Profiles are deployed, the size of the HTTP Accept headers for user
agents will potentially cause problems with HTTP header limits and low-bandwidth
networks. An alternative solution is needed to provide identification using
an indexing system. This system will depend on the existance of the application/cdf+xml
internet media type along with alternate parameter values for prof
.
Samples of complimentary Accept headers are:
Accept: application/cdf+xml;prof="http://www.w3.org/2006/CDF/WICD http://www.w3.org/2007/CDF/WICD2"
Accept: application/cdf+xml;prof="1 2"
This will require a public registry for profiles. Is this worth it?
See also infamous Appendix G Media Type Options