Posted by: bobcvols
« on: May 21, 2024, 09:53:47 pm »Thank you so much for all your help!
Thank you for using this forum as the technical support base for your device.
● You can format the text and attach screenshots, photos and RDS Spy records
● Faster reply: 50 % of questions are answered within 30 minutes
● You don't need to register (but registration is possible)
● The members represent a wide range of experts
● The resolution will be helpful to other users
● You'll be notified by email about new post
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="LogEventCollection">
<xsl:for-each select="LogEvent">
<xsl:choose>
<xsl:when test="@Status='CURRENT'">
<current>
<xsl:choose>
<xsl:when test="@Type='SONG'">
<title>
<xsl:value-of select="Asset/@Title" />
</title>
<artist>
<xsl:value-of select="Asset/@Artist1" />
</artist>
</xsl:when>
<xsl:otherwise>
<xsl:text>FAITH RADIO</xsl:text>
</xsl:otherwise>
</xsl:choose>
</current>
</xsl:when>
</xsl:choose>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
<?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>
<?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>RT1=</xsl:text>
<xsl:choose>
<xsl:when test="@Type='SONG'">
<xsl:value-of select="Asset/@Title" />
<xsl:text> by </xsl:text>
<xsl:value-of select="Asset/@Artist1" />
</xsl:when>
<xsl:otherwise>
<xsl:text>FAITH RADIO</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:value-of select="$newline" />
</xsl:when>
</xsl:choose>
</xsl:for-each>
<xsl:apply-templates />
</xsl:template>
</xsl:stylesheet>