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


Wind Advisory issued November 5 at 3:51AM MST until November 5 at 5:00PM MST by NWS Boise ID

* WHAT…Southwest winds 20 to 30 mph with gusts up to 55 mph expected. * WHERE…In Idaho, Owyhee Mountains. In Oregon, Harney County and Malheur County. * WHEN…From 11 AM MST /10 AM PST/ this morning to 5 PM MST /4 PM PST/ this afternoon. * IMPACTS…Gusty winds will blow around unsecured objects. Tree limbs could be blown down and a few power outages may result.

High Surf Advisory issued November 5 at 2:37AM PST until November 6 at 7:00PM PST by NWS Portland OR

* WHAT…For the first Coastal Flood Advisory, tidal overflow flooding expected. For the High Surf Advisory, large waves and hazardous surf conditions. Breakers up to 25-30 feet. For the second Coastal Flood Advisory, tidal overflow flooding expected. * WHERE…Clatsop and Tillamook Coast, and South Washington Coast. * WHEN…For the first Coastal Flood Advisory, from 10 AM this morning to 3 PM PST this afternoon. For the High Surf Advisory, from 4 AM to 7 PM PST Thursday. For the second Coastal Flood Advisory, from 10 AM to 3 PM PST Thursday. * IMPACTS…Minor flooding during high tides is expected in the low lying areas near bays, sloughs, and the lower reaches of the coastal rivers. This is due to total tide up to 12 feet at Toke point resulting in tide up to one foot above ground level, total tide up to 11 feet at Tongue Point resulting in tide up to one foot above ground level, and total tide up to 11 feet at Garibaldi resulting in tide up to one foot above ground level. Destructive waves may wash over beaches, jetties, and other structures unexpectedly. People can be swept off rocks and jetties and drown while observing high surf. Minor beach erosion may damage coastal properties and buildings. Higher than normal water run- up is expected on beaches and low- lying shoreline. * ADDITIONAL DETAILS…Sneaker waves are also possible due to high waves and long period energetic periods. Caution should be used when in or near the water. Always keep an eye on the waves, and be especially watchful of children and pets.

High Surf Advisory issued November 5 at 2:37AM PST until November 6 at 7:00PM PST by NWS Portland OR

* WHAT…Large waves and hazardous surf conditions. Breakers up to 25-30 feet. * WHERE…Central Coast of Oregon. * WHEN…From 4 AM to 7 PM PST Thursday. * IMPACTS…Destructive waves may wash over beaches, jetties, and other structures unexpectedly. People can be swept off rocks and jetties and drown while observing high surf. Minor beach erosion may damage coastal properties and buildings. Higher than normal water run-up is expected on beaches and low- lying shoreline. * ADDITIONAL DETAILS…Sneaker waves are also possible due to high waves and long period energetic periods. Caution should be used when in or near the water. Always keep an eye on the waves, and be especially watchful of children and pets.

Coastal Flood Advisory issued November 5 at 2:37AM PST until November 6 at 3:00PM PST by NWS Portland OR

* WHAT…For the first Coastal Flood Advisory, tidal overflow flooding expected. For the High Surf Advisory, large waves and hazardous surf conditions. Breakers up to 25-30 feet. For the second Coastal Flood Advisory, tidal overflow flooding expected. * WHERE…Clatsop and Tillamook Coast, and South Washington Coast. * WHEN…For the first Coastal Flood Advisory, from 10 AM this morning to 3 PM PST this afternoon. For the High Surf Advisory, from 4 AM to 7 PM PST Thursday. For the second Coastal Flood Advisory, from 10 AM to 3 PM PST Thursday. * IMPACTS…Minor flooding during high tides is expected in the low lying areas near bays, sloughs, and the lower reaches of the coastal rivers. This is due to total tide up to 12 feet at Toke point resulting in tide up to one foot above ground level, total tide up to 11 feet at Tongue Point resulting in tide up to one foot above ground level, and total tide up to 11 feet at Garibaldi resulting in tide up to one foot above ground level. Destructive waves may wash over beaches, jetties, and other structures unexpectedly. People can be swept off rocks and jetties and drown while observing high surf. Minor beach erosion may damage coastal properties and buildings. Higher than normal water run- up is expected on beaches and low- lying shoreline. * ADDITIONAL DETAILS…Sneaker waves are also possible due to high waves and long period energetic periods. Caution should be used when in or near the water. Always keep an eye on the waves, and be especially watchful of children and pets.

Coastal Flood Advisory issued November 5 at 2:37AM PST until November 5 at 3:00PM PST by NWS Portland OR

* WHAT…For the first Coastal Flood Advisory, tidal overflow flooding expected. For the High Surf Advisory, large waves and hazardous surf conditions. Breakers up to 25-30 feet. For the second Coastal Flood Advisory, tidal overflow flooding expected. * WHERE…Clatsop and Tillamook Coast, and South Washington Coast. * WHEN…For the first Coastal Flood Advisory, from 10 AM this morning to 3 PM PST this afternoon. For the High Surf Advisory, from 4 AM to 7 PM PST Thursday. For the second Coastal Flood Advisory, from 10 AM to 3 PM PST Thursday. * IMPACTS…Minor flooding during high tides is expected in the low lying areas near bays, sloughs, and the lower reaches of the coastal rivers. This is due to total tide up to 12 feet at Toke point resulting in tide up to one foot above ground level, total tide up to 11 feet at Tongue Point resulting in tide up to one foot above ground level, and total tide up to 11 feet at Garibaldi resulting in tide up to one foot above ground level. Destructive waves may wash over beaches, jetties, and other structures unexpectedly. People can be swept off rocks and jetties and drown while observing high surf. Minor beach erosion may damage coastal properties and buildings. Higher than normal water run- up is expected on beaches and low- lying shoreline. * ADDITIONAL DETAILS…Sneaker waves are also possible due to high waves and long period energetic periods. Caution should be used when in or near the water. Always keep an eye on the waves, and be especially watchful of children and pets.

Dense Fog Advisory issued November 5 at 2:13AM PST until November 5 at 4:00AM PST by NWS Pendleton OR

* WHAT…Visibility down to <=1/4 mile in dense fog. * WHERE...Foothills of the Northern Blue Mountains of Oregon. * WHEN...Until 4 AM PST early this morning. * IMPACTS...Low visibility could make driving conditions hazardous. * ADDITIONAL DETAILS...Observed on live cams on I-84 between Pendleton and Mission/Cabbage Hill.

Dense Fog Advisory issued November 5 at 2:13AM PST until November 5 at 4:00AM PST by NWS Pendleton OR

* WHAT…Visibility <=1/4 mile in dense fog across parts of Central Oregon. * WHERE...Central Oregon. * WHEN...Until 4 AM PST early this morning. * IMPACTS...Low visibility could make driving conditions hazardous.

High Surf Advisory issued November 4 at 1:05PM PST until November 6 at 10:00PM PST by NWS Medford OR

* WHAT…Large breaking waves of 20 to 25 feet. * WHERE…Curry County Coast. * WHEN…From 7 PM this evening to 10 PM PST Thursday. * IMPACTS…Large breaking waves will create hazardous conditions along and within the surf zone, and could inundate beaches and low lying shorelines. Beach erosion is possible, and exposed infrastructure may be damaged. * View the hazard area in detail at https://www.wrh.noaa.gov/map/?wfo=mfr

High Surf Advisory issued November 4 at 1:05PM PST until November 6 at 10:00PM PST by NWS Medford OR

* WHAT…For the High Surf Advisory, large breaking waves of 20 to 25 feet. For the Coastal Flood Watch, minor tidal flooding is possible during high tide. * WHERE…For the High Surf Advisory, South Central Oregon Coast. For the Coastal Flood Watch, Coos Bay and estuaries. * WHEN…For the High Surf Advisory, from 7 PM this evening to 10 PM PST Thursday. For the Coastal Flood Watch, from late Wednesday night through Thursday evening. * IMPACTS…For the High Surf Advisory, large breaking waves will create hazardous conditions along and within the surf zone, and could inundate beaches and low lying shorelines. Beach erosion is possible, and exposed infrastructure may be damaged. For the Coastal Flood Watch, low lying roadways may be closed. Low lying property, and some critical infrastructure may be inundated. Some shoreline erosion may occur. * View the hazard area in detail at https://www.wrh.noaa.gov/map/?wfo=mfr

Coastal Flood Watch issued November 4 at 1:05PM PST until November 6 at 10:00PM PST by NWS Medford OR

* WHAT…For the High Surf Advisory, large breaking waves of 20 to 25 feet. For the Coastal Flood Watch, minor tidal flooding is possible during high tide. * WHERE…For the High Surf Advisory, South Central Oregon Coast. For the Coastal Flood Watch, Coos Bay and estuaries. * WHEN…For the High Surf Advisory, from 7 PM this evening to 10 PM PST Thursday. For the Coastal Flood Watch, from late Wednesday night through Thursday evening. * IMPACTS…For the High Surf Advisory, large breaking waves will create hazardous conditions along and within the surf zone, and could inundate beaches and low lying shorelines. Beach erosion is possible, and exposed infrastructure may be damaged. For the Coastal Flood Watch, low lying roadways may be closed. Low lying property, and some critical infrastructure may be inundated. Some shoreline erosion may occur. * View the hazard area in detail at https://www.wrh.noaa.gov/map/?wfo=mfr

High Wind Warning issued November 4 at 10:45AM PST until November 5 at 4:00PM PST by NWS Medford OR

* WHAT…South winds 35 to 45 mph with gusts up to 60 mph expected. * WHERE…All of Lake, Modoc, and eastern Klamath counties, especially over high terrain and along highway 31 between Paisley and Summer Lake, and including portions of highways 140, 97, and 395. * WHEN…From 10 PM this evening to 4 PM PST Wednesday. * IMPACTS…High winds may move loose debris, damage trees and property and cause power outages. Travel could be difficult, especially for high profile vehicles.

High Wind Warning issued November 4 at 10:45AM PST until November 5 at 10:00AM PST by NWS Medford OR

* WHAT…South winds 30 to 40 mph with gusts up to 60 mph expected. * WHERE…In California, Northeast Siskiyou and Northwest Modoc Counties. In Oregon, Klamath Basin. This includes Klamath Falls and Tulelake. * WHEN…From 10 PM this evening to 10 AM PST Wednesday. * IMPACTS…High winds may move loose debris, damage trees and property and cause power outages. Travel could be difficult, especially for high profile vehicles.

High Wind Warning issued November 4 at 10:45AM PST until November 5 at 7:00AM PST by NWS Medford OR

* WHAT…South winds 35 to 50 mph with gusts up to 70 mph expected. * WHERE…The southern Oregon Cascades and Siskiyou Mountains. The highest winds are expected over the peaks and ridges, but strong winds are possible even down into the valleys. * WHEN…From 1 AM to 7 AM PST Wednesday. * IMPACTS…High winds may move loose debris, damage property and cause power outages. Tree damage is likely. Travel could be difficult, especially for high profile vehicles.

High Wind Warning issued November 4 at 10:45AM PST until November 5 at 7:00AM PST by NWS Medford OR

* WHAT…South winds 30 to 40 mph with gusts up to 65 mph expected. * WHERE…Most of the coastline of Coos and Curry counties, especially Capes, Headlands, and exposed areas. This includes Cape Blanco, Cape Arago, Humbug Mountain, Bandon Head, Pistol River, and exposed portions of Highway 101. * WHEN…From 4 PM this afternoon to 7 AM PST Wednesday. * IMPACTS…High winds may move loose debris, damage trees and property and cause power outages. Travel could be difficult, especially for high profile vehicles.

Wind Advisory issued November 4 at 10:45AM PST until November 5 at 7:00AM PST by NWS Medford OR

* WHAT…Southeast winds 25 to 35 mph with gusts up to 50 mph expected. * WHERE…All areas west of the Cascades in Jackson, Josephine, and Douglas counties, especially all higher terrain and wind aligned valleys such as the Rogue Valley from Ashland to Medford. * WHEN…From 4 PM this afternoon to 7 AM PST Wednesday. * IMPACTS…Gusty winds will blow around unsecured objects and a few power outages may result.

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