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


Red Flag Warning issued August 26 at 9:25PM PDT until August 27 at 9:00PM PDT by NWS Portland OR

The National Weather Service in Portland has issued a Red Flag Warning for thunderstorms and unstable conditions, which is in effect from 9 AM to 9 PM PDT Wednesday. * AFFECTED AREA…In Oregon, Fire Weather Zone 689 Northern Willamette National Forest and Fire Weather Zone 690 Southern Willamette National Forest. * THUNDERSTORMS…Isolated to scattered thunderstorms. * DRY AND UNSTABLE…Unstable conditions with elevated mixing heights may promote pyroconvective activity. * OUTFLOW WINDS…Instantaneous gusts as high as 40 mph. Gusts at these speeds can be observed tens of miles away from the core of the thunderstorm. * IMPACTS…Conditions may be favorable for rapid fire spread which may threaten life and property. Thunderstorm outflow winds may result in unanticipated erratic fire spread. High instability may result in fire growth. Frequent lightning and critically dry fuels may result in fire starts.

Red Flag Warning issued August 26 at 1:13PM PDT until August 27 at 9:00PM PDT by NWS Medford OR

The National Weather Service in Medford has issued a Red Flag Warning, which is in effect from 1 PM to 9 PM PDT Wednesday. * IMPACTS…Abundant lightning on dry fuels resulting in the potential for numerous new fire starts. * AFFECTED AREA…In California, Fire weather zones 281, 284, and 285, and in Oregon, Fire weather zones 617, 623, 624, and 625. * THUNDERSTORMS…Scattered thunderstorms with abundant lightning expected. Storms are likely to be wet, but lightning strikes outside of precipitation cores are possible, and may cause many new fire starts. * OUTFLOW WINDS…Gusts of 35 to 50 mph could travel outward up to 25 miles from thunderstorm cores. * DETAILED URL…View the hazard area in detail at https://www.wrh.noaa.gov/map/?wfo=mfr

Flash Flood Watch issued August 26 at 12:30PM PDT until August 27 at 5:00AM PDT by NWS Boise ID

A surge of deep monsoonal moisture combined with a slow-moving upper trough will bring periods of heavy showers and thunderstorms across the region. This airmass contains anomalously high moisture content, supporting the potential for excessive rainfall. Flash flooding will be possible, especially in steep terrain, narrow canyons, and near recent burn scars where soils are less able to absorb rainfall. The greatest risk will be Tuesday afternoon through Wednesday evening as repeated rounds of storms move through. * WHAT…Flash flooding caused by excessive rainfall continues to be possible. * WHERE…A portion of southeast Oregon, including the following county, Harney County. * WHEN…Through late tonight. * IMPACTS…Heavy rainfall could trigger flash flooding or debris flows, especially in and near recent wildfire burn scars. * ADDITIONAL DETAILS… – https://www.weather.gov/safety/flood

Flash Flood Watch issued August 26 at 12:30PM PDT until August 27 at 11:00PM PDT by NWS Boise ID

A surge of deep monsoonal moisture combined with a slow-moving upper trough will bring periods of heavy showers and thunderstorms across the region. This airmass contains anomalously high moisture content, supporting the potential for excessive rainfall. Flash flooding will be possible, especially in steep terrain, narrow canyons, and near recent burn scars where soils are less able to absorb rainfall. The greatest risk will be Tuesday afternoon through Wednesday evening as repeated rounds of storms move through. * WHAT…Flash flooding caused by excessive rainfall continues to be possible. * WHERE…Portions of Idaho, including the following areas, Boise Mountains, Camas Prairie, Lower Treasure Valley, Owyhee Mountains, Southern Twin Falls County, Southwest Highlands, Upper Treasure Valley, Upper Weiser River, West Central Mountains and Western Magic Valley and Oregon, including the following areas, Baker County, Malheur County and Oregon Lower Treasure Valley. * WHEN…Through Wednesday evening. * IMPACTS…Heavy rainfall could trigger flash flooding or debris flows, especially in and near recent wildfire burn scars. * ADDITIONAL DETAILS… – https://www.weather.gov/safety/flood

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