W3C home > Mailing lists > Public > xproc-dev@w3.org > December 2010

RE: Q's about http-request attributes

From: <vojtech.toman@emc.com>
Date: Thu, 2 Dec 2010 11:14:49 -0500
To: <xproc-dev@w3.org>
Message-ID: <3799D0FD120AD940B731A37E36DAF3FE32B116B705@MX20A.corp.emc.com>
These are all XML serialization related options. Also other steps use them, such as p:store or p:escape-markup. Look at the section 5.6 in the XProc spec ("p:serialization") for more details. The complete documentation of the XML serialization options is in the "XSLT 2.0 and XQuery 1.0 Serialization" spec (http://www.w3.org/TR/xslt-xquery-serialization/)

- doctype-public, doctype-system: if you want to include a public/system identifier in the serialized XML, you can specify it here
- include-content-type, media-type: if the serialization method is (X)HTML, enabling this option will result in a "meta" element with the content type information (provided using the media-type option) in the serialized (X)HTML output.
- standalone: controls whether the XML declaration in the serialized output contains the "standalone" declaration
- version: controls whether you are serializing to XML 1.0 or 1.1 (for the XML serialization method), or the HTML version (for the HTML method) etc.

In the case of p:http-request, the serialization options can be used for controlling how XML data is serialized before being sent to the server.

Hope this helps.


Vojtech Toman
Consultant Software Engineer
EMC | Information Intelligence Group

From: xproc-dev-request@w3.org [mailto:xproc-dev-request@w3.org] On Behalf Of Tony Rogers
Sent: Thursday, December 02, 2010 4:56 PM
To: XProc Dev
Subject: Q's about http-request attributes

So, I keep referring back to the XProc specification for stuff like this, but I can't seem to find the answer anywhere.  A lot of attributes appear to be just plain unexplained.

So, here goes my list of questions for p:http-request:

 *   @doctype-public and @doctype-system
          What is their purpose?
 *   @include-content-type and @media-type :
          Is there a difference between "content type" and "media type"?  Or are these both MIME types?
 *   @standalone :
          I have searched and searched for the purpose of this attribute with no luck.  The specification is nice enough to tell me that it takes true, false, and omit, but not what those values actually do.
 *   @version :
          Does this refer to HTTP version 1.0 / 1.1?  Or to some other version?

Thanks in advance,

Received on Thursday, 2 December 2010 16:29:28 UTC

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