[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

XLST newbie needs help

Subject: XLST newbie needs help
From: "NIENKE, Bill P. - ACCOR-NA" <Nienke_Bill@xxxxxxxxxxxx>
Date: Mon, 21 Oct 2002 11:50:36 -0500
xlst value of
> Hi,
> Newbie to XSLT ~ I'm having trouble transforming this WSDL
> http://www.ejseinc.com/WeatherService/Service.asmx?op=GetExtendedWeatherIn
> fo into HTML.
> Here is my XSL doc:
> <?xml version='1.0' encoding='ISO-8859-1'?>
> <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> <xsl:output method="html" version="1.0" encoding="UTF-8"
> omit-xml-declaration="no" indent="no" media-type="text/html"/>
>     <xsl:template match="/">
> <HTML>
> <HEAD>
> <TITLE>Weather Forcast</TITLE>
> <link rel="STYLESHEET" type="text/css" href="/includes/style_ael.css"/>
> </HEAD>
> <BODY BGCOLOR="ffffff">
> <TABLE BGCOLOR="ffffff" BORDER="0" CELLPADDING="4" CELLSPACING="0"
> WIDTH="100%" class="content">
> 	     <TR VALIGN="middle">
> 	       <TD ALIGN="left" BGCOLOR="ffffff">	
> 		   <xsl:element name="ExtendedWeatherInfo"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://ejseinc.com/WeatherService/" />
> 		     <b><xsl:text>Current Report for</xsl:text>
> <xsl:value-of select="//Info/Location"/></b><br></br>     
> 		      <xsl:text>Temperature:</xsl:text> <xsl:value-of
> select="//Info/Temprature"/><br></br>
> 			 <xsl:element name="img">
> 			 <xsl:attribute name="src">
> 				<xsl:value-of
> select="//Info/IconIndex"/><xsl:text>.gif</xsl:text>
> 			  </xsl:attribute>			  
> 			  </xsl:element>
> 			  <br></br>
> 			   <xsl:text>Feels Like:</xsl:text> <xsl:value-of
> select="//Info/FeelsLike"/><br></br>
> 			   <xsl:text>Forcast:</xsl:text> <xsl:value-of
> select="//Info/Forecast"/><br></br>
> 			   <xsl:text>Visibility:</xsl:text> <xsl:value-of
> select="//Info/Visibility"/><br></br>
> 			   <xsl:text>Barometric Pressure:</xsl:text>
> <xsl:value-of select="Info/Pressure"/><br></br>
> 			   <xsl:text>Wind:</xsl:text> <xsl:value-of
> select="//Info/Wind"/><br></br>
> 			   <xsl:text>UV Index:</xsl:text> <xsl:value-of
> select="//Info/UVIndex"/><br></br>
> 			   <xsl:text>Humidity:</xsl:text> <xsl:value-of
> select="//Info/Humidity"/><br></br>
> 			   <xsl:text>Reported At:</xsl:text> <xsl:value-of
> select="//Info/ReportedAt"/><br></br>
> 			   <xsl:text>Last Updated:</xsl:text> <xsl:value-of
> select="//Info/LastUpdated"/><br></br>
> 
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day1/Day"/> - <xsl:value-of
> select="Day1/Date"/><br></br>	 
>  <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day1/Forecast"/><br></br>
>  <xsl:text>High: </xsl:text><xsl:value-of select="Day1/High"/><br></br>
>  <xsl:text>Low: </xsl:text><xsl:value-of select="Day1/Low"/><br></br>
>  <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day1/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day2/Day"/> - <xsl:value-of
> select="Day2/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day2/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day2/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day2/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day2/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day3/Day"/> - <xsl:value-of
> select="Day3/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day3/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day3/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day3/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day3/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day4/Day"/> - <xsl:value-of
> select="Day4/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day4/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day4/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day4/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day4/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day5/Day"/> - <xsl:value-of
> select="Day5/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day5/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day5/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day5/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day5/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day6/Day"/> - <xsl:value-of
> select="Day6/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day6/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day6/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day6/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day6/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day7/Day"/> - <xsl:value-of
> select="Day7/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day7/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day7/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day7/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day7/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day8/Day"/> - <xsl:value-of
> select="Day8/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day8/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day8/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day8/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day8/PrecipChance"/><br></br>
> <hr color="#FF9933" size="1" />
> <xsl:value-of select="Day9/Day"/> - <xsl:value-of
> select="Day9/Date"/><br></br>	 
> <xsl:text>Forcast: </xsl:text><xsl:value-of
> select="Day9/Forecast"/><br></br>
> <xsl:text>High: </xsl:text><xsl:value-of select="Day9/High"/><br></br>
> <xsl:text>Low: </xsl:text><xsl:value-of select="Day9/Low"/><br></br>
> <xsl:text>Chance of Precipitation: </xsl:text><xsl:value-of
> select="Day9/PrecipChance"/><br></br>
> 	       </TD>
> 	     </TR>
> </TABLE>
> </BODY>
> </HTML>
> 	</xsl:template>
> </xsl:stylesheet>
> 
> ~ What am I doing wrong? The XSL displays as written, but the XML data
> doens't show. Do I have an XPath error somewhere?
> 
> 
> William Nienke
> Web Developer 
> Accor North America
> 972.702.3603
> bnienke@xxxxxxxxxxxx
> 
> 

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.