Xandria
01-03-2005, 08:40 AM
Hello
i want this xml document translate too html with xslt, i' ve tried with this code but it doen't work :confused:
this is the xml document
<?xml version="1.0" encoding="utf-16"?>
<CurrentWeather>
<Location>Antwerpen / Deurne, Belgium (EBAW) 51-12N 004-28E 14M</Location>
<Time>Jan 03, 2005 - 07:20 AM EST / 2005.01.03 1220 UTC</Time>
<Wind> from the WSW (240 degrees) at 13 MPH (11 KT):0</Wind>
<Visibility> greater than 7 mile(s):0</Visibility>
<SkyConditions> mostly cloudy</SkyConditions>
<Temperature> 44 F (7 C)</Temperature>
<DewPoint> 41 F (5 C)</DewPoint>
<RelativeHumidity> 87%</RelativeHumidity>
<Pressure> 30.47 in. Hg (1032 hPa)</Pressure>
<Status>Success</Status>
</CurrentWeather>
and this is my xls document witch contains a fault :confused:
<?xml version="1.0" encoding="utf-16"?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" doctype-public= "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<xsl:template match="/" >
<html xmlns="http://www.w3.org/1999/xHTML">
<head>
<title>Ledenbeheer V.C.C.P</title>
</head>
<body>
<table>
<tr>
<th><xsl:value-of select="CurrentWeather/Location"/><th>
</tr>
<tr>
<td>Tijd meting:</td>
<td><xsl:value-of select="CurrentWeather/Time"/></td>
</tr>
<tr>
<td>Windrichting:</td>
<td><xsl:value-of select="CurrentWeather/Wind"/></td>
</tr>
<tr>
<td>Lucht:</td>
<td><xsl:value-of select="CurrentWeather/SkyConditions"/></td>
</tr>
<tr>
<td>Temperatuur:</td>
<td><xsl:value-of select="CurrentWeather/Temperature"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
i want this xml document translate too html with xslt, i' ve tried with this code but it doen't work :confused:
this is the xml document
<?xml version="1.0" encoding="utf-16"?>
<CurrentWeather>
<Location>Antwerpen / Deurne, Belgium (EBAW) 51-12N 004-28E 14M</Location>
<Time>Jan 03, 2005 - 07:20 AM EST / 2005.01.03 1220 UTC</Time>
<Wind> from the WSW (240 degrees) at 13 MPH (11 KT):0</Wind>
<Visibility> greater than 7 mile(s):0</Visibility>
<SkyConditions> mostly cloudy</SkyConditions>
<Temperature> 44 F (7 C)</Temperature>
<DewPoint> 41 F (5 C)</DewPoint>
<RelativeHumidity> 87%</RelativeHumidity>
<Pressure> 30.47 in. Hg (1032 hPa)</Pressure>
<Status>Success</Status>
</CurrentWeather>
and this is my xls document witch contains a fault :confused:
<?xml version="1.0" encoding="utf-16"?>
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output method="html" doctype-public= "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" />
<xsl:template match="/" >
<html xmlns="http://www.w3.org/1999/xHTML">
<head>
<title>Ledenbeheer V.C.C.P</title>
</head>
<body>
<table>
<tr>
<th><xsl:value-of select="CurrentWeather/Location"/><th>
</tr>
<tr>
<td>Tijd meting:</td>
<td><xsl:value-of select="CurrentWeather/Time"/></td>
</tr>
<tr>
<td>Windrichting:</td>
<td><xsl:value-of select="CurrentWeather/Wind"/></td>
</tr>
<tr>
<td>Lucht:</td>
<td><xsl:value-of select="CurrentWeather/SkyConditions"/></td>
</tr>
<tr>
<td>Temperatuur:</td>
<td><xsl:value-of select="CurrentWeather/Temperature"/></td>
</tr>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>