9
« Last post by Jan on May 21, 2024, 08:48:11 pm »
If you're using the PIRA P132 family RDS encoder (P132, P232, P232U, P332, P164), take advantage of its tagging support. Send RT+ directly. It's fully compatible with RT:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="text" />
<xsl:strip-space elements="*" />
<xsl:variable name="newline">
<xsl:text> </xsl:text>
</xsl:variable>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="LogEventCollection">
<xsl:for-each select="LogEvent">
<xsl:choose>
<xsl:when test="@Status='CURRENT'">
<xsl:text>XCMD=<rds><item><dest>3</dest><text></xsl:text>
<xsl:choose>
<xsl:when test="@Type='SONG'">
<xsl:text><title></xsl:text>
<xsl:value-of select="Asset/@Title" />
<xsl:text></title> - <artist></xsl:text>
<xsl:value-of select="Asset/@Artist1" />
<xsl:text></artist></xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>FAITH RADIO</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text></text></item></rds></xsl:text>
<xsl:value-of select="$newline" />
</xsl:when>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>
Result:
XCMD=<rds><item><dest>3</dest><text><title>New Song 1</title> - <artist>Artist Name 1 Song 1</artist></text></item></rds>