Example 3 – RSS feed
|
Details for the example |
|
|---|---|
|
Data source |
Sample RSS feed: |
|
Transformation |
Yes |
|
Personalisation/ |
No |
|
Agent |
|
|
Time of the update |
Sending time |
Notes on the example
In this example we will show you how you can integrate your own RSS feed into your mailing. You can use the following RSS feed for test purposes: https://fudder.de/index.html.rss.
Through the transformation, the first four entries of the blog are shown as a table in HTML format.
Presentation on the website (example)
https://fudder.de/index.html.rss
URL of the data source (example)
https://fudder.de/index.html.rss.
Transformation
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output indent="yes" method="xml" omit-xml-declaration="no" encoding="iso-8859-1"/>
<xsl:template match="rss/channel">
<xsl:variable name="quot">'</xsl:variable>
<xsl:for-each select="item[position()<=4]">
<span style="font-family:Verdana,Helvetica,sans-serif;font-style:normal;font-size:20px;font-weight:normal;text-decoration:none;color:#B1B1B1;"><xsl:value-of disable-output-escaping="yes" select="title"/></span>
<br style="font-size:20px;"/>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td style="vertical-align:top;" align="left" valign="top">
<a><xsl:attribute name="href"><xsl:value-of select="concat('[%url:unique-count; ',$quot, link, $quot, ']')"/></xsl:attribute>
</a>
</td>
<td style="vertical-align:top;" align="left" valign="top">
<xsl:value-of select="concat('[%url:unique-count; ', $quot, link, $quot, '; ', $quot, 'weitere Informationen', $quot, ']')" />
</td>
</tr>
</table>
<xsl:if test="position()!=4">
<span style="font-size:20px;"></span>
<br style="font-size:20px;"/>
</xsl:if>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Related topics
- Smart Guide: Integrate an RSS feed into a trigger mailing
Inxmail Professional:
2 possible use cases
Depending on your contract, you might use Inxmail Professional in different ways:
-
As part of the Inxmail platform: You use newsletters & campaigns as your main tool for creating and sending newsletters. Inxmail Professional only serves as a recipient database and configuration tool in the background.
We are constantly expanding the functionality of “Newsletters & Campaigns”. Check out newsletters & campaigns section to find out if the feature you are looking for might already be available there.
-
Full scope: You use the legacy tool Inxmail Professional as your main tool for creating and sending newsletters.
Did you not find what you were looking for?
-
Send us your feedback.