Post reply

Name:
Email:
Subject:
Message icon:

Verification:
Unregistered users must pass a verification:



Please enter the number from the picture above which is showing FM broadcast antenna:

shortcuts: hit alt+s to submit/post or alt+p to preview


Topic Summary

Posted by: Jan
« on: September 19, 2022, 09:19:02 pm »

Provide tagged information to your listeners, not only Dynamic PS or Text. The RDS encoders with X-Command support can send complete tagged data directly from the RCS Zetta software.

In the RCS Zetta add a new export, either serial or TCP.
Format - Start With: ZettaLite

The XSLT template is as below:

Code: [Select]
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" omit-xml-declaration="yes"/>
<xsl:strip-space elements="*"/>
<xsl:variable name="newline">
<xsl:text>&#13;</xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates/>
</xsl:template>
<xsl:template match="LogEventCollection">
<xsl:for-each select="LogEvent">
<xsl:text>XCMD=&lt;rds&gt;&lt;item&gt;&lt;dest&gt;3&lt;/dest&gt;&lt;text&gt;</xsl:text>
<xsl:choose>
<xsl:when test="@Type='SONG'">
<xsl:text>&lt;title&gt;</xsl:text>
<xsl:value-of select="Asset/@Title"/>
<xsl:text>&lt;/title&gt; - &lt;artist&gt;</xsl:text>
<xsl:value-of select="Asset/@Artist1"/>
<xsl:text>&lt;/artist&gt;</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Enter station slogan here</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text>&lt;/text&gt;&lt;/item&gt;&lt;/rds&gt;</xsl:text>
<xsl:value-of select="$newline"/>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>

Don't forget to edit the station slogan inside the template.