Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/09/2015, 06:40
zenixdavid
 
Fecha de Ingreso: septiembre-2015
Ubicación: Madrid
Mensajes: 2
Antigüedad: 8 años, 8 meses
Puntos: 0
Respuesta: Obtener excel a partir de xslt

Pongo un codigo mas sencillo para que se entienda mejor, el problema es que no consigo crear dos o mas pestañas dentro de la excel:

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsl:stylesheet version="1.0" xmlns="urn:schemas-microsoft-com:office:spreadsheet"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt"
xmlns:user="urn:my-scripts" xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet">

<xsl:output method="xml" encoding="ISO-8859-1" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" omit-xml-declaration="yes"/>

<xsl:decimal-format name="euro" decimal-separator="," grouping-separator="."/>

<xsl:template match="/">

<Worksheet ss:Protected="0" ss:Name="OBB Datos básicos">
<table border="1">
<tr>
<th align="center" bgcolor="grey" colspan="6" ><font color="black">Detalle de la OBB</font></th>
</tr>
</table>
<table>
<tr>
<th align="left" bgcolor="white" colspan="1">Clase de operación:</th>
</tr>
</table>
</Worksheet>

<Worksheet ss:Protected="0" ss:Name="Conceptos">
<table border="1">
<tr>
<th align="center" bgcolor="grey" colspan="6" ><font color="black">Concepto</font></th>
</tr>
</table>
</Worksheet>

</xsl:template>
</xsl:stylesheet>

Con este codigo sale esto:


Última edición por zenixdavid; 03/09/2015 a las 06:52