[georss] "When" information in georss

Noyori Tatsuya nojorin at gmail.com
Mon Sep 17 05:15:39 EDT 2007


Hello,

I was suggested the following XML for multi geo and time.

<geo:fs>
    <geo:ds>
        <geo:dateTime>2007-08-12T05:53:00+05:00</geo:dateTime>
        <geo:point>31.57 -85.25</geo:point>
        <xhtml:div>
            <xhtml:div>Feels Like  : <xhtml:span geo:term="feels
like">84</xhtml:span>°</xhtml:div>
        </xhtml:div>
    </geo:ds>
</geo:fs>

And, I have thought about style.
I do not want to set color or icon to each value of term.
I would like to suggest the following style.xml.

<define name="feels like">
    <icon>http://www.georss.org/georss/image/whiteBlackCircle.png</icon>
    <gradient>
        <stop value="0">
            <color>#0000FF</color>
            <scale>1</scale>
        </stop>
        <stop value="100">
            <color>#FF0000</color>
            <scale>1.5</scale>
        </stop>
    </gradient>
</define>

This style can use gradient style to each value of term. Gradient
style is like svg:linearGradient. The color of mid value is determined
by highest value-color and lowest value-color pairs.

I think this is good idea.

And, I think it is good that <fs> element contains link of style as follows:

<geo:fs style="http://example.org/geo/style.xml">
    <geo:ds>
        <geo:dateTime>2007-08-12T05:53:00+05:00</geo:dateTime>
        <geo:point>31.57 -85.25</geo:point>
        <xhtml:div>
            <xhtml:div>Feels Like  : <xhtml:span geo:term="feels
like">84</xhtml:span>°</xhtml:div>
        </xhtml:div>
    </geo:ds>
</geo:fs>


ref:
http://nojorin.blogspot.com/2007/09/blog-post.html
-- 
Tatsuya Noyori (^o^)/


More information about the georss mailing list