wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

forecastIcon

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Web Sites and HTML Templates
View previous topic :: View next topic  
Author Message
NorwegianWould



Joined: 07 Jan 2006
Posts: 23

PostPosted: Thu Jan 12, 2006 5:52 am    Post subject: forecastIcon Reply with quote

Hi,

I've been constructing my new weather page in the last few days. It's dependent on an XML file with all wview variables. I did it this way because then the web server can easily parse the weather station variables (using PHP, python, etc).

I came across a problem with the 'forecastIcon' parameter.

Using
Quote:
<forecastIcon><!--forecastIcon--></forecastIcon>
in my wxall.xtx template, results in
Quote:
<forecastIcon><img src="fc-icon-partlycloudy.gif"></forecastIcon>

Which is not XML (the img tag is not closed), and causes the parser to complain.

I can hack the source so that I get
Quote:
<forecastIcon><img src="fc-icon-partlycloudy.gif"/></forecastIcon>


Which is valid XML, but would require special treatment for this single case since the img tag is not #text

So I have since hacked the code so that I actually get:
Quote:
<forecastIcon>fc-icon-partlycloudy.gif</forecastIcon>


This is working perfectly well, but is not compatible with whatever anyone else might have done, and I would not want to hack my version of wview everytime there is a new version. Is there a solution in future where there could be for example a forecastIconImg variable which is just the name of the gif?

My in-work weather page is here: http://neshamn.no/vh-weather/, and shows a dynamic weather page that uses zope/python
and if anyone wants an XML template with every wview variable, then look here: http://neshamn.no/vh-weather/wview_img/wxall.xtx

Jeremy
Back to top
View user's profile Send private message
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Thu Jan 12, 2006 7:39 am    Post subject: Reply with quote

I will add a new HTML tag "--forecastIconFile--" to the next release which just generates the filename.

Thanks for the suggestion,
Mark
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Web Sites and HTML Templates All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group