
28/02/2006, 11:58
|
| | Fecha de Ingreso: diciembre-2002
Mensajes: 129
Antigüedad: 22 años, 3 meses Puntos: 0 | |
No se muy bien si como te voy a poner es lo que necesitas, pero te pongo un pequeño ejemplo.
Codigo XML:
<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<?xml-stylesheet type="text/xsl" href="C:\Documents and Settings\pro209\Mis documentos\anboto.xsl"?>
<monte id="294" autor="Javier Urrutia" fecha="22/02/2006" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<nombre>Anboto</nombre>
<sierra>Anboto</sierra>
<provincia>Bizkaia</provincia>
<altitud datum="Alicante" unidad="m">1331</altitud>
<prominencia unidad="m">734</prominencia>
<categoria>1+</categoria>
<situacion>
<coordenadas datum="ED50" sistema="UTM" unidad="m">
<zona>30T</zona>
<x>532950</x>
<y>4770870</y>
</coordenadas>
<coordenadas datum="ED50" sistema="GEO" unidad="g">
<latitud>43.089058090702</latitud>
<longitud>-2.5951806214772</longitud>
</coordenadas>
</situacion>
<descripcion> Junto con Gorbeia ( 1.482 m ), la cumbre más característica y codiciada del señorío, y una de las más conocidas en todo EuskalHerria.
</descripcion>
</monte>
CODIGO DEL XSL:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:template match="/">
<html>
<head>
<title>
MONTES
</title>
</head>
<body>
<table align="left" border="0">
<xsl:for-each select="monte">
<tr>
<th>
<div align="left">
Autor: <font color="blue">
<xsl:value-of select="@autor"/>
</font>
</div>
</th>
</tr>
<tr>
<th>
<div align="left">
Fecha: <font color="blue">
<xsl:value-of select="@fecha"/>
</font>
</div>
</th>
</tr>
</xsl:for-each>
</table>
<br/>
<br/>
<br/>
<br/>
<table align="center" border="0">
<tr>
<th>nombre
</th>
<th>sierra
</th>
<th>provincia
</th>
<th>categoria
</th>
</tr>
<xsl:for-each select="monte">
<tr>
<td>
<xsl:value-of select="nombre"/>
</td>
<td>
<xsl:value-of select="sierra"/>
</td>
<td>
<xsl:value-of select="provincia"/>
</td>
<td>
<xsl:for-each select="/monte/altitud">
<xsl:value-of select="@datum"/>
</xsl:for-each>
</td>
</tr>
</xsl:for-each>
</table>
<br/>
<xsl:for-each select="monte">
<xsl:value-of select="descripcion"/>
</xsl:for-each>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Espero que te sirva de algo. |