Atom Feeds

Wikipedia : Atom (web standard)

W3C : Introduction to Atom

XSL file – “case-study-feeds/atom.xsl”
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:atom="http://www.w3.org/2005/Atom" version="1.0" exclude-result-prefixes="atom">

    <xsl:output method="html" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:include href="../../plugins/tenandtwo-xslt-processor/xsl/date.xsl"/>

    <!-- main -->
    <xsl:template match="/">
        <xsl:apply-templates select="atom:feed"/>
    </xsl:template>

    <!-- feed -->
    <xsl:template match="atom:feed">
        <!-- header -->
        <h3><xsl:value-of select="atom:title"/></h3>
        <h5><xsl:value-of select="atom:subtitle"/></h5>

        <!-- body -->
        <xsl:apply-templates select="atom:entry"/>

        <!-- footer -->
        <hr size="1"/>
        <div>
            <xsl:text>Updated : </xsl:text>
            <time>
                <xsl:attribute name="datetime"><xsl:value-of select="atom:updated"/></xsl:attribute>
                <xsl:call-template name="date-format">
                    <xsl:with-param name="value" select="atom:updated"/>
                    <xsl:with-param name="format" select="'Y-m-d h:i A'"/>
                </xsl:call-template>
            </time>

            <xsl:for-each select="atom:author/*">  <!-- name, email, uri -->
                <br/>
                <xsl:text>Author : </xsl:text>
                <xsl:value-of select="text()"/>
            </xsl:for-each>

            <xsl:if test="string-length(atom:link[@rel='alternate']/@href) &gt; 0">
                <br/>
                <a target="_blank">
                    <xsl:attribute name="href"><xsl:value-of select="atom:link[@rel='alternate']/@href"/></xsl:attribute>
                    <xsl:text>Visit Website →</xsl:text>
                </a>
            </xsl:if>
        </div>
    </xsl:template>

    <!-- entry -->
    <xsl:template match="atom:entry">
        <hr size="1"/>
        <h5>
            <time>
                <xsl:attribute name="datetime"><xsl:value-of select="atom:updated"/></xsl:attribute>
                <xsl:call-template name="date-format">
                    <xsl:with-param name="value" select="atom:updated"/>
                    <xsl:with-param name="format" select="'Y-m-d h:i A'"/>
                </xsl:call-template>
            </time>
        </h5>
        <h4>
            <a target="_blank">
                <xsl:attribute name="href">
                    <xsl:choose>
                        <xsl:when test="string-length(atom:link[@rel='alternate']/@href) &gt; 0">
                            <xsl:value-of select="atom:link[@rel='alternate']/@href"/>
                        </xsl:when>
                        <xsl:when test="string-length(atom:link/@href) &gt; 0">
                            <xsl:value-of select="atom:link/@href"/>
                        </xsl:when>
                        <xsl:otherwise><xsl:value-of select="atom:id"/></xsl:otherwise>
                    </xsl:choose>
                </xsl:attribute>
                <xsl:value-of disable-output-escaping="yes" select="atom:title"/>
            </a>
        </h4>
        <div>
            <xsl:choose>
                <xsl:when test="string-length(.//atom:content) &gt; 0">
                    <xsl:value-of disable-output-escaping="yes" select=".//atom:content"/>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of disable-output-escaping="yes" select=".//atom:summary"/>
                </xsl:otherwise>
            </xsl:choose>
        </div>
    </xsl:template>

</xsl:stylesheet><!-- end atom.xsl -->

National Weather Service Alerts for OR

[xslt_transform_xml xsl="case-study-feeds/atom.xsl" xml="https://alerts.weather.gov/cap/or.php?x=0" /]
Output

Current watches, warnings, and advisories for Oregon


Special Weather Statement issued June 30 at 4:50PM PDT by NWS Medford OR

At 450 PM PDT, Doppler radar was tracking a strong thunderstorm 10 miles northwest of Sprague River, or 26 miles north of Klamath Falls. This storm was nearly stationary. HAZARD…Winds in excess of 40 mph and penny size hail. SOURCE…Radar indicated. IMPACT…Gusty winds could knock down tree limbs and blow around unsecured objects. Minor damage to outdoor objects is possible. This storm will remain over mainly rural areas of central Klamath County.

Heat Advisory issued June 30 at 2:14PM MDT until July 1 at 8:00PM MDT by NWS Boise ID

* WHAT…Temperatures up to 104 expected in the Lower Snake Plain, Treasure Valley, and Weiser Basin. * WHERE…Portions of southwest Idaho and southeast Oregon. * WHEN…From 11 AM MDT /10 AM PDT/ to 8 PM MDT /7 PM PDT/ Tuesday. * IMPACTS…Hot temperatures may cause heat illnesses, especially for the young, elderly, and animals.

Heat Advisory issued June 30 at 1:14PM PDT until July 1 at 9:00PM PDT by NWS Pendleton OR

* WHAT…Hot conditions with temperatures up to 100 degrees. This will pose a moderate to major risk of heat-related illness. * WHERE…Eastern Columbia River Gorge of Oregon and Washington. * WHEN…Until 9 PM PDT Tuesday. * IMPACTS…Hot temperatures may cause heat illnesses. Heat will significantly increase the risk of heat-related illnesses for those who are sensitive to heat, especially those without effective cooling or adequate hydration.

Heat Advisory issued June 30 at 1:14PM PDT until July 1 at 9:00PM PDT by NWS Pendleton OR

* WHAT…Hot conditions with temperatures up to 100 degrees. This will pose a moderate to major risk of heat-related illness. * WHERE…In Oregon, Foothills of the Northern Blue Mountains of Oregon. In Washington, Foothills of the Blue Mountains of Washington. * WHEN…Until 9 PM PDT Tuesday. * IMPACTS…Extreme heat will significantly increase the risk of heat-related illnesses for much of the population, especially those who are heat sensitive and those without effective cooling or adequate hydration.

Heat Advisory issued June 30 at 1:14PM PDT until July 1 at 9:00PM PDT by NWS Pendleton OR

* WHAT…Hot conditions with temperatures up to 97 degrees. This will pose a moderate to major risk of heat-related illness. * WHERE…Foothills of the Southern Blue Mountains of Oregon and North Central Oregon. * WHEN…Until 9 PM PDT Tuesday. * IMPACTS…Heat will significantly increase the risk of heat-related illnesses for those who are sensitive to heat, especially those without effective cooling or adequate hydration.

Heat Advisory issued June 30 at 1:14PM PDT until July 1 at 9:00PM PDT by NWS Pendleton OR

* WHAT…Hot conditions with temperatures up to 103 degrees. This will pose a moderate to major risk of heat-related illness. * WHERE…Lower Columbia Basin of Oregon and Washington. * WHEN…Until 9 PM PDT Tuesday. * IMPACTS…Extreme heat will significantly increase the risk of heat-related illnesses for much of the population, especially those who are heat sensitive and those without effective cooling or adequate hydration.

Red Flag Warning issued June 30 at 1:00PM PDT until July 1 at 9:00PM PDT by NWS Pendleton OR

…DRY THUNDERSTORMS EXPECTED FOR CENTRAL OREGON TUESDAY, FOLLOWED BY DRY AND WINDY CONDITIONS ACROSS THE KITTITAS VALLEY AND WASHINGTON BASIN WEDNESDAY… .The high pressure currently leading to hot and dry conditions will start to break down Tuesday into Wednesday, allowing for dry thunderstorms to develop across central Oregon. Once high pressure has completely broken down on Wednesday, winds will pick up. With RHs having little time to recover from Monday and Tuesday’s heat, this will lead to potentially critical fire weather conditions across the Kittitas Valley and into the Washington Columbia Basin. The National Weather Service in Pendleton has issued a Red Flag Warning for abundant lightning, which is in effect from 2 PM to 9 PM PDT Tuesday. * AFFECTED AREA…Fire Weather Zone 700 Central Mountains of Oregon. * TIMING…From 2 PM to 9 PM PDT Tuesday. * IMPACTS…Any fire that develops will catch and spread quickly. Outdoor burning is not recommended. * RAINFALL AMOUNTS…Storms are mostly expected to be dry, with rainfall amounts less than a tenth of an inch. A few isolated storm cells could produce rainfall amounts of 0.1 to 0.2 inches. * OUTFLOW WINDS…As high as 45 mph.

Updated :
Author : w-nws.webmaster@noaa.gov