1 |
4307
|
leinfelder
|
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
|
|
<xsl:stylesheet version="1.0"
|
3 |
|
|
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
4 |
|
|
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
5 |
|
|
xmlns:rss="http://purl.org/rss/1.0/"
|
6 |
|
|
xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/"
|
7 |
|
|
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
8 |
|
|
xmlns:syn="http://purl.org/rss/1.0/modules/syndication/"
|
9 |
|
|
xmlns:georss="http://www.georss.org/rss"
|
10 |
|
|
xmlns:xlink="http://www.w3.org/1999/xlink"
|
11 |
|
|
xmlns:gml="http://www.opengis.net/gml/3.1.1"
|
12 |
|
|
xmlns:wmc="http://www.opengis.net/context"
|
13 |
|
|
xmlns:sld="http://www.opengis.net/sld"
|
14 |
|
|
xmlns:ogc="http://www.opengis.net/ogc"
|
15 |
|
|
xmlns:media="http://search.yahoo.com/mrss">
|
16 |
|
|
|
17 |
|
|
<!-- xsl:output method="html" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/ -->
|
18 |
|
|
<xsl:output method="xml" omit-xml-declaration="yes" encoding="utf-8" indent="yes"/>
|
19 |
|
|
|
20 |
|
|
<xsl:template match="/">
|
21 |
|
|
<ResourceList xmlns="http://www.opengis.net/context" >
|
22 |
|
|
<xsl:apply-templates select="."/>
|
23 |
|
|
</ResourceList>
|
24 |
|
|
</xsl:template>
|
25 |
|
|
|
26 |
|
|
<xsl:template match="photo">
|
27 |
|
|
<xsl:variable name="pid"><xsl:value-of select="@pid"/></xsl:variable>
|
28 |
|
|
<xsl:variable name="id"><xsl:value-of select="@id"/></xsl:variable>
|
29 |
|
|
<xsl:variable name="width"><xsl:value-of select="@width"/></xsl:variable>
|
30 |
|
|
<xsl:variable name="height"><xsl:value-of select="@height"/></xsl:variable>
|
31 |
|
|
<xsl:variable name="title"><xsl:value-of select="@title"/></xsl:variable>
|
32 |
|
|
<xsl:variable name="secret"><xsl:value-of select="@secret"/></xsl:variable>
|
33 |
|
|
<xsl:variable name="server"><xsl:value-of select="@server"/></xsl:variable>
|
34 |
|
|
<xsl:variable name="link">http://www.flickr.com/photos/15435549@N00/<xsl:value-of select="$id"/>/</xsl:variable>
|
35 |
|
|
<xsl:variable name="thn">http://static.flickr.com/<xsl:value-of select="$server"/>/<xsl:value-of select="$id"/>_<xsl:value-of select="$secret"/>_s.jpg</xsl:variable>
|
36 |
|
|
|
37 |
|
|
<wmc:RssLayer queryable="0" hidden="0" id="{$id}" width="{$width}" height="{$height}" pid="{$id}" >
|
38 |
|
|
<wmc:Server service="GeoRSS" version="1.0" title="{$title}">
|
39 |
|
|
<wmc:OnlineResource xlink:type="simple" xlink:href="{$link}"/>
|
40 |
|
|
</wmc:Server>
|
41 |
|
|
<wmc:Name><xsl:value-of select="$title"/></wmc:Name>
|
42 |
|
|
<wmc:Title><xsl:value-of select="$title"/></wmc:Title>
|
43 |
|
|
<wmc:StyleList>
|
44 |
|
|
<wmc:Style>
|
45 |
|
|
<wmc:Name>Highlite</wmc:Name>
|
46 |
|
|
<sld:PointSymbolizer>
|
47 |
|
|
<sld:Stroke>
|
48 |
|
|
<sld:CssParameter name="stroke">#ffff00</sld:CssParameter>
|
49 |
|
|
<sld:CssParameter name="stroke-width">1</sld:CssParameter>
|
50 |
|
|
</sld:Stroke>
|
51 |
|
|
</sld:PointSymbolizer>
|
52 |
|
|
</wmc:Style>
|
53 |
|
|
<wmc:Style>
|
54 |
|
|
<wmc:Name>Normal</wmc:Name>
|
55 |
|
|
<sld:PointSymbolizer>
|
56 |
|
|
<sld:Graphic>
|
57 |
|
|
<sld:ExternalGraphic>
|
58 |
|
|
<sld:OnlineResource xlink:type="simple" xlink:href="{$thn}" />
|
59 |
|
|
</sld:ExternalGraphic>
|
60 |
|
|
<sld:Size>32</sld:Size>
|
61 |
|
|
</sld:Graphic>
|
62 |
|
|
</sld:PointSymbolizer>
|
63 |
|
|
</wmc:Style>
|
64 |
|
|
</wmc:StyleList>
|
65 |
|
|
<wmc:Abstract><img src='{$thn}' /><br/><a href="{$link}" target="_blank" >Flickr Link</a></wmc:Abstract>
|
66 |
|
|
<wmc:Where></wmc:Where>
|
67 |
|
|
</wmc:RssLayer>
|
68 |
|
|
</xsl:template>
|
69 |
|
|
|
70 |
|
|
</xsl:stylesheet>
|