Mapping element
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Used in an HtmlTransInfo.xml file (\Program Files\Common Files\Microsoft Shared\web server extensions\12TEMPLATE\XML
) to direct requests to the URL for handling the requests when the client computer does not have the 2007 Microsoft Office system installed.
<Mapping
AcceptHeader = "Text"
Extension = "Text"
HandlerUrl = "Text"
ProgId = "Text">
</Mapping>
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attribute
Attribute | Description |
---|---|
AcceptHeader |
Optional Text. Specifies the application to use to open a file in a document library. If HTML viewing is enabled, Microsoft SharePoint Foundation compares the value of this attribute with the Accept-Header HTTP header of the request, and either opens the document in its native format through the specified application, or offers to convert the document to HTML. For more information, see Programming with the Microsoft.HtmlTrans Namespace. |
Extension |
Optional Text. Specifies the file name extension for the document type. |
HandlerUrl |
Optional Text. Specifies the URL of a converter program used by the server to handle a request when the client computer does not have Microsoft Office system installed. |
ProgId |
Optional Text. Specifies the name of the ActiveX control used to open the type of document. |
Child elements
None
Parent elements
Occurrences
- Minimum: 0
- Maximum: Unbounded