Skip to content
Guide

Search the Guide

Enter a query to search the Guide.

Íslenska
Menu
On this page

eDoc XSLTs

eDoc XSLTs stores XSLT files that turn the XML file of an electronic document into HTML so the document can be read. The XSLT only handles presentation. Importing the data is done by the data exchange definition.

Overview

When an inbound document is imported, the eDoc HTML attachment is created with the XSLT that has:

  • XSLT Code equal to XSLT To Use on the delivery site the document came from, and
  • Document Type equal to the root of the XML file.

If no XSLT matches, no HTML is created and Show in Browser on the eDoc card shows "No document was found to show in browser".

The install creates four default XSLTs with a blank XSLT Code, for Invoice, InvoiceTS236, CreditNote and Order, with the description "Default XSLT document for eDocs of type type". They are installed again when eDocs is upgraded and when you choose Run Install Code Manually on eDoc Setup.

eDoc XSLTs in Business Central

Fields

FieldWhat it doesWhen to change itDefault
XSLT CodeIdentifies the XSLT together with Document Type. It's compared with XSLT To Use on the delivery site.When you add your own XSLT.Blank for default XSLTs
Document TypeThe document type the XSLT applies to, for example Invoice, CreditNote or Order. It's compared with the root of the XML file.When you add your own XSLT.
DescriptionA description of the XSLT.When you want to describe the XSLT better.
XSLT has been uploadedShows whether an XSLT file has been uploaded.Never.

Actions

ActionWhat it does
Upload XSLTUploads an .xslt or .xsl file to the selected line. The dialog is called "Select a XSLT or XSL file to upload".

Deleting a default XSLT

If you delete an XSLT with a blank XSLT Code, the system asks "This is a default fallback XSLT, removing it might cause problems for future use of eDocs. Do you still want to delete?". If you answer no, "Deletion aborted" is shown. Deleted default XSLTs are installed again with Run Install Code Manually.