-
Notifications
You must be signed in to change notification settings - Fork 2
For the Ticker!
Marvin Frederickson edited this page Feb 6, 2020
·
1 revision
With version [master] of this gem, there is now a field for specifying if you want the contents generated as ticker text as opposed to the html text. So now, your weather can appear in the ticker area-- just make sure it is clean enough to do so (probably do not want any images, etc.).
Here is a sample: url:
https://w1.weather.gov/xml/current_obs/PASX.rss
xslt:
<?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"/>
<xsl:template match="/">
<xsl:apply-templates select="/rss/channel/item[1]"/>
</xsl:template>
<xsl:template match="item">
<xsl:value-of select="title"/>
<xsl:value-of disable-output-escaping="yes" select="description"/>
</xsl:template>
</xsl:stylesheet>
Display Format:
XSLT
Output Type:
Ticker
Blacklisted HTML Tags:
img br