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) > 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) > 0"> <xsl:value-of select="atom:link[@rel='alternate']/@href"/> </xsl:when> <xsl:when test="string-length(atom:link/@href) > 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) > 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
Winter Weather Advisory issued November 20 at 9:53PM PST until November 21 at 7:00AM PST by NWS Medford OR
* WHAT…Snow above 4500 ft in the high central Cascades in Klamath,
Jackson and Douglas Counties. Additional snow accumulations
between 3 and 8 inches. Winds gusting as high as 45 mph.
* WHERE…South Central Oregon Cascades County above 4500 feet
elevation. This includes portions of Highway 138, Highway 230 near
Diamond Lake, and Highway 62 near Crater Lake.
* WHEN…Until 7 AM PST Thursday.
* IMPACTS…Travel could be very difficult. The hazardous conditions
could impact the Thursday morning commute.
* ADDITIONAL DETAILS…Snow levels will gradually rise to around
6000 feet early Thursday morning with snow changing to rain.
Winter Weather Advisory issued November 20 at 9:53PM PST until November 21 at 7:00AM PST by NWS Medford OR
* WHAT…Wet snow above 4500 ft in the southern Cascades and
Siskiyous in Jackson and Klamath Counties. Additional snow
accumulations between 3 and 8 inches. Winds gusting as high as 45
mph.
* WHERE…Siskiyou Mountains and Southern Oregon Cascades County
above 4500 feet elevation. This includes portions of Highway 140
near Lake of the Woods, Highway 66, and Interstate 5 near Siskiyou
Summit.
* WHEN…Until 7 AM PST Thursday.
* IMPACTS…Plan on slippery road conditions. The hazardous
conditions could impact the Thursday morning commute.
* ADDITIONAL DETAILS…Snow levels will gradually rise to around
6000 feet early Thursday morning with snow changing to rain.
Winter Weather Advisory issued November 20 at 9:53PM PST until November 21 at 7:00AM PST by NWS Medford OR
* WHAT…Wet snow above 4500 ft in western Lake County and eastern
Klamath County. Additional snow accumulations of 2 to 7 inches.
* WHERE…Northern and Eastern Klamath County and Western Lake
County County above 4500 feet elevation. This includes portions of
Highway 97 near Chemult, Highway 31 north of Silver Lake, and
Highway 140 between Klamath Falls and Lakeview.
* WHEN…Until 7 AM PST Thursday.
* IMPACTS…Plan on slippery road conditions. The hazardous
conditions could impact the Thursday morning commute. Gusty winds
could bring down tree branches.
* ADDITIONAL DETAILS…Snow levels gradually rise to around 6000
feet early Thursday morning with snow changing to rain.
Wind Advisory issued November 20 at 8:39PM PST until November 21 at 12:00AM PST by NWS Pendleton OR
* WHAT…South winds 25 to 35 mph with gusts of 45 to 55 mph for the
base of the northern Blue Mountains of Oregon.
* WHERE…Foothills of the Northern Blue Mountains of Oregon.
* WHEN…Until midnight PST tonight.
* IMPACTS…Gusty winds will blow around unsecured objects. Tree
limbs could be blown down and a few power outages may result.
High Wind Warning issued November 20 at 6:41PM PST until November 22 at 10:00AM PST by NWS Medford OR
* WHAT…South winds 25 to 40 mph with gusts up to 60 mph.
* WHERE…Portions of Lake and Modoc counties and far eastern
Klamath County, including Lakeview, Valley Falls, Bly, Paisley,
Summer Lake, Silver Lake, Adel, Fort Rock, the Warner and Hart
mountains, and portions of Highways 395, 31, and 140. Northeast
Siskiyou and southwest Klamath counties, including Dorris,
Macdoel, Klamath Falls, Bonanza, and portions of Highways 97, 140,
39, and 139.
* WHEN…Until 10 AM PST Friday.
* IMPACTS…Damaging winds will blow down trees and power lines.
Widespread power outages are expected. Travel will be difficult,
especially for high profile vehicles.
* ADDITIONAL DETAILS…Gusty winds persist overnight, but could ease
for a time into Thursday afternoon. Strong winds are likely to
redevelop Thursday evening with gusts to 60 mph into Friday
morning.
High Wind Watch issued November 20 at 6:41PM PST until November 23 at 1:00PM PST by NWS Medford OR
* WHAT…South winds 25 to 40 mph with gusts up to 65 mph possible.
The strongest gusts will be along the beaches, headlands and
higher coastal terrain.
* WHERE…Curry County Coast and South Central Oregon Coast,
including Highway 101 from Brookings to Reedsport.
* WHEN…From Thursday evening through Saturday afternoon.
* IMPACTS…Damaging winds could blow down trees and power lines.
Widespread power outages are possible. Travel could be difficult,
especially for high profile vehicles.
High Surf Advisory issued November 20 at 4:09PM PST until November 21 at 4:00AM PST by NWS Medford OR
* WHAT…Large breaking waves of 20 to 25 feet.
* WHERE…South Central Oregon Coast and Curry County Coast.
* WHEN…Until 4 AM 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
Winter Weather Advisory issued November 20 at 2:33PM PST until November 21 at 4:00AM PST by NWS Pendleton OR
* WHAT…Snow. Additional snow accumulations of 3-7 inches above
4500 feet. Travel conditions could be difficult at times.
* WHERE…East Slopes of the Oregon Cascades.
* WHEN…Until 4 AM PST Thursday.
* IMPACTS…Plan on slippery road conditions.
* ADDITIONAL DETAILS…Snow accumulations will be highest along the
Cascade crest.
Flood Watch issued November 20 at 2:23PM PST by NWS Medford OR
…The National Weather Service in Medford OR has issued a Flood
Watch for the following rivers in Oregon…
South Fork Coquille River at Myrtle Point affecting South Central
Oregon Coast zone.
* WHAT…Flooding is possible due to heavy rainfall.
* WHERE…South Fork Coquille River at Myrtle Point.
* WHEN…From this afternoon until further notice.
* IMPACTS…At 30.0 feet, Agricultural and pasture land begins to
flood. Impacts on cattle grazing are possible.
* ADDITIONAL DETAILS…
– At 1:20 PM PST Wednesday the stage was 18.1 feet.
– Forecast…Flood stage may be reached based on the latest
forecast information.
– Flood stage is 33.0 feet.
– http://www.weather.gov/safety/flood
Winter Weather Advisory issued November 20 at 2:18PM PST until November 21 at 4:00AM PST by NWS Portland OR
* WHAT…Wet snow above 4500 feet. Additional snow accumulations up
to 3-6 inches. Travel conditions could be difficult at times.
* WHERE…Northern and Central Oregon Cascades.
* WHEN…Until 4 AM PST Thursday.
* IMPACTS…Plan on slippery road conditions. The hazardous
conditions could impact the Wednesday evening commute.
Flood Warning issued November 20 at 12:45PM PST until November 23 at 12:00AM PST by NWS Medford OR
* WHAT…Flooding caused by excessive rainfall and snow melt is
expected.
* WHERE…Portions of southwest Oregon, including Coos, Curry,
Jackson, and Josephine counties and western Siskiyou County in
northern California.
* WHEN…Until midnight PST Friday Night.
* IMPACTS…Flooding of rivers, creeks, streams, and other low-lying
and flood-prone locations is expected.
* ADDITIONAL DETAILS…
– At 1227 PM PST, satellite estimates and rain gauge data
indicate heavy rain in the warned area. Between 1 and 6
inches of rain have fallen.
– Additional rainfall amounts of 3 to 7 inches are possible in
the warned area. Some areas will receive snowfall and then
switch to rainfall. Rain can melt the snow and cause a higher
runoff response than rainfall alone.
– http://www.weather.gov/safety/flood
Updated :
Author : w-nws.webmaster@noaa.gov
Author : w-nws.webmaster@noaa.gov