Tips.cl

Ejemplo de XML y XSL

Por MigueliTUX Jun.03, 2009, categoría Xml

tenemos el siguiente XML

<REGISTRO>  <DATOS>  <NOMBRE>JUAN</NOMBRE>  <DIRECCION>MANUEL</DIRECCION>  </DATOS> </REGISTRO>

y lo queremos mostrar en una tabla de un XSL

<table>
<tr>
<th width=”150″>Nombre</th>
<th width=”210″>Direccion</th>
</tr>
<xsl:for-each select=”/REGISTRO/DATOS”>
<tr>
<td><xsl:value-of select=”NOMBRE”/> </td>
<td><xsl:value-of select=”DIRECCION”/> </td>
</tr>
</xsl:for-each>
</table>

:,

2 comments to “Ejemplo de XML y XSL”

Leave a Reply

Buscas algun tips?

Busca aquí:

contactate con nosotos contacto@tips.cl

Visita nuestras Web amigas!

Web Amigas...