473,805 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

url redirects from xsl style sheet

5 New Member
I have a personal web server that imports from my weather station. The data is already in XML format. I created my xsl and it displays the data on the web page very nicely.

I have been unsuccessful on trying to link from the discriptor field. I'm trying to link to a more detailled report on each item to show a graph of the past 12 hours. I have the part done and this part. I need help breaking my roadblock to link the discriptor to the individual html page with the graph on that item.

ie.. wind speed showes the current data i\on the web page. I want to click on wind speed ( descriptor in the XSL ) to bbring up the next web page to display the wind graph data for the past 12 or 24 hours.

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"><xsl:template match="/">
  4.   <html>
  5.   <body bgcolor="#999999">
  6.     <table border="1">
  7.       <tr bgcolor="#9acd32">
  8.         <th align="left">Date stamp</th> 
  9.         <th align="left">Time stamp</th> 
  10.         <th align="left">Outdoor Temp</th> 
  11.         <th align="left">Humidity </th> 
  12.         <th align="left">Bar Pressure Mb</th> 
  13.         <th align="left">Wind Speed</th> 
  14.         <th align="left">wind Dir</th> 
  15.         <th align="left">Angle</th> 
  16.       </tr>
  17.       <xsl:for-each select="/">
  18.       <tr>
  19.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Date" /></td>
  20.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Time" /></td>
  21.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Temperature/Outdoor/Value" /></td>
  22.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Humidity/Outdoor/Value" /></td>
  23.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Pressure/Value" /></td>
  24.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Wind/Value" /></td>
  25.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Wind/Direction/Text" /></td>
  26.         <td bgcolor="#ccffcc"><xsl:value-of select="/ws2300/Wind/Direction/Dir0" /></td>
  27.       </tr>
  28.       </xsl:for-each>
  29.   </table>
  30.   </body>
  31.   </html>
  32. </xsl:template></xsl:stylesheet>
Aug 12 '06 #1
1 1895
ml41782
5 New Member
Date stamp Time stamp Outdoor Temp Humidity Bar Pressure Mb Wind Speed wind Dir Angle
2006-08-12 15:08:34 88.7 19 1013.500 0.0 SE 135.0




xml data that is used


<?xml version="1.0" encoding="utf-8"?>
<ws2300 version="1.0">
<Date>2006-08-12</Date>
<Time>15:08:3 4</Time>
<Temperature>
<Indoor>
<Value>75.2</Value>
<Min>68.0</Min>
<Max>87.6</Max>
<MinTime>09:3 2</MinTime>
<MinDate>2006-06-13</MinDate>
<MaxTime>20:3 6</MaxTime>
<MaxDate>2006-05-30</MaxDate>
</Indoor>
<Outdoor>
<Value>88.7</Value>
<Min>50.2</Min>
<Max>106.5</Max>
<MinTime>06:1 5</MinTime>
<MinDate>2006-06-11</MinDate>
<MaxTime>11:3 5</MaxTime>
<MaxDate>2006-08-03</MaxDate>
</Outdoor>
</Temperature>
<Humidity>
<Indoor>
<Value>53</Value>
<Min>41</Min>
<Max>69</Max>
<MinTime>19:4 3</MinTime>
<MinDate>2006-06-11</MinDate>
<MaxTime>12:5 4</MaxTime>
<MaxDate>2006-07-23</MaxDate>
</Indoor>
<Outdoor>
<Value>19</Value>
<Min>11</Min>
<Max>96</Max>
<MinTime>18:2 9</MinTime>
<MinDate>2006-05-29</MinDate>
<MaxTime>06:5 1</MaxTime>
<MaxDate>2006-08-12</MaxDate>
</Outdoor>
</Humidity>
<Dewpoint>
<Value>278.0</Value>
<Min>29.1</Min>
<Max>79.2</Max>
<MinTime>10:2 7</MinTime>
<MinDate>2006-06-11</MinDate>
<MaxTime>07:3 4</MaxTime>
<MaxDate>2006-08-03</MaxDate>
</Dewpoint>
<Wind>
<Value>0.0</Value>
<Direction>
<Text>SE</Text>
<Dir0>135.0</Dir0>
<Dir1>112.5</Dir1>
<Dir2>135.0</Dir2>
<Dir3>112.5</Dir3>
<Dir4>0.0</Dir4>
<Dir5>0.0</Dir5>
</Direction>
<Min>0.0</Min>
<Max>29.5</Max>
<MinTime>15:1 0</MinTime>
<MinDate>2006-08-12</MinDate>
<MaxTime>20:1 2</MaxTime>
<MaxDate>2006-06-04</MaxDate>
</Wind>
<Windchill>
<Value>88.7</Value>
<Min>47.3</Min>
<Max>106.5</Max>
<MinTime>04:0 4</MinTime>
<MinDate>2006-06-05</MinDate>
<MaxTime>11:3 5</MaxTime>
<MaxDate>2006-08-03</MaxDate>
</Windchill>
<Rain>
<OneHour>
<Value>0.00</Value>
<Max>0.02</Max>
<MaxTime>18:4 0</MaxTime>
<MaxDate>2006-07-21</MaxDate>
</OneHour>
<TwentyFourHour >
<Value>0.00</Value>
<Max>0.02</Max>
<MaxTime>16:5 7</MaxTime>
<MaxDate>2006-07-22</MaxDate>
</TwentyFourHour>
<Total>
<Value>0.02</Value>
<Time>11:12</Time>
<Date>2006-06-03</Date>
</Total>
</Rain>
<Pressure>
<Value>1013.500 </Value>
<Min>1001.600 </Min>
<Max>1021.300 </Max>
<MinTime>05:4 1</MinTime>
<MinDate>2006-06-03</MinDate>
<MaxTime>10:2 8</MaxTime>
<MaxDate>2006-07-07</MaxDate>
<Tendency>Risin g</Tendency>
</Pressure>
<Forecast>Sunny </Forecast>
</ws2300>
Aug 12 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
2017
by: Mark | last post by:
Hi - I want to allow users of an intranet application, to select their own colours etc. So I have a tbale in my database, which has fields called bgcolour, fontcolour etc. As I want all pages to get the users colours, I have an includes file at the top of each page: <!--#include file="userconfig.asp" --> This is:
2
3955
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but unfortunately restrictions on the architecture may this unfeasible. With the LINK tag I could use that but I understand older browsers dont support it properly. I will only ever have 2 style sheets. Is there a way to link one style sheet to...
19
15615
by: Roger | last post by:
How can I pass parameters to a style sheet? I have noticed a couple of sites are now passing variables to the style sheet, which appear to be substituted at run time. For example: <link rel="stylesheet" type="text/css" href="mystyle.css?color=ffffff"> I have seen references in my temp Internet file directory that indicates this is possible, but I can't find any documentation how to do it.
5
1976
by: Andrew Poulos | last post by:
If I have an external stylesheet that is @imported into my page and it has an element that looks like this: * html td { font-style: italic; } how can I use javascript to change the font style to 'normal'? Andrew Poulos
7
3059
by: Daniel Kaplan | last post by:
I have the item below at the top of my style sheet. And it seems that the font-szie is ignored. I know that my linked style sheet is being read, and used because if I remove the font-family line, the font changes. But it appears that no matter what I do with the font-size, it is ignored, and I cannot figure out why! Any clues? At the very bottom is the entire style sheet, just incase anyone comes accross something that they feel is...
1
1982
by: Amanda H. | last post by:
I posted about this a few days ago, and I got a few suggestions that fixed part of my problem. I am using a PHP script to switch external style sheets when the viewer clicks on the style link. Search "Amanda H." in this group and you can view my last post to see the original PHP and html junk. This below is the updated link rel and the meta tags. Before, it wouldn't refresh or change in Opera, Firefox, or IE6/Win & IE5/Mac. The...
8
41528
by: pamelafluente | last post by:
Hi guys, Is it possible to add "onload" (via Javascript) a new class to the <styleheader section? If yes, how would that be done ? <style type="text/css" media="screen"> .NewStyleClass{ whatever } </style>
10
2689
by: pamelafluente | last post by:
Hi, this time I am trying to add a style on the fly.I wish equivalency with this one (only the menuItemStyle line): <head> <style type="text/css" media="screen"> ... some static styles ... ..menuItemStyle{ background:#ddeeff;border-width:1px;border-style:inset;font-family:Arial;font-size:11px
4
2405
by: fjm | last post by:
Hello everyone. I’d like to know how to handle multiple style sheets. I have css tabs that have a style sheet and then I also have a separate style sheet for the content that goes inside the tab. The problem I am running into is that the tab style sheet uses attributes in the html and body and so does the content style sheet. Each one is specific to its content. The tab style sheet seems to take precedence over the content style sheet because...
4
5636
Frinavale
by: Frinavale | last post by:
So a while ago I created a Tab Strip Control (before the AjaxToolkit had theirs otherwise I would have probably just used theirs). When I looked at the AjaxToolkit control to see how they got around this problem I discovered that they're using Animations. I don't want to bloat my control with the Ajaxtoolkit's Animation stuff though. I guess I should tell you what the problem is. I have a TabStrip custom control. It's a Table that has...
0
10359
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10364
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10104
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7645
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6875
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5677
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4317
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3843
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3007
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.