Requirements for MRSS Feed Transformation File

What is a .xslt Transformation File?

The Index transformation file (in .xslt format),  is responsible for mapping your custom MRSS feed to the appropriate entities within the system. If your MRSS Feed is already created according to our standard, the transformation will be performed automatically. But if you are using custom MRSS feed, you will need to supply us with an additional transformation file so our system will know how to process your MRSS feed.

Note: To learn about our MRSS Feed standard, please refer to MRSS Feed Requirements.

 

MRSS Feed Transformation .xslt Format

If you chose to use a custom MRSS Feed file that does not conform to the structure defined in our MRSS Feed Requirements, you must provide a .xslt transformation file to process your MRSS Feed.

Your transformation file must map to the following elements:

  • feedindex
  • feed
  • url - Mandatory
  • lastmod - Mandatory

Important! 'url' and 'lastmod' are mandatory fields that must be mapped in your transformation file.

 

Example

The following is an example showing a custom MRSS Feed Transformation .xslt file. 

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/>

<xsl:template match="/">
<xsl:element name="feedindex">
<xsl:for-each select="MY_FEED_INDEX/MY_FEED">

<xsl:element name="feed">
<xsl:element name="url"><xsl:value-of select="MY_URL_ELEMENT" /></xsl:element>
<xsl:element name="lastmod"><xsl:value-of select="MY_MODIFICATION_ELEMENT" /></xsl:element>
</xsl:element>

</xsl:for-each>
</xsl:element>
</xsl:template>
</xsl:stylesheet>

 

 

Have more questions? Submit a request