Files
colegio-en-java/colegio_api/bin/files/xslt/toExcelReporteGeneral.xsl
2017-07-31 13:07:07 -04:00

202 lines
10 KiB
XML

<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:template match="/">
<Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
<Author>ed woychowsky</Author>
<LastAuthor>Edmond Woychowsky</LastAuthor>
<Created>2007-01-26T16:54:15Z</Created>
<LastSaved>2007-01-27T05:18:54Z</LastSaved>
<Company>None</Company>
<Version>10.3501</Version>
</DocumentProperties>
<OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office">
<DownloadComponents/>
<LocationOfComponents HRef="file:///D:\" />
</OfficeDocumentSettings>
<ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel">
<WindowHeight>8700</WindowHeight>
<WindowWidth>11355</WindowWidth>
<WindowTopX>480</WindowTopX>
<WindowTopY>120</WindowTopY>
<ProtectStructure>False</ProtectStructure>
<ProtectWindows>False</ProtectWindows>
</ExcelWorkbook>
<Styles>
<Style ss:ID="Default" ss:Name="Normal">
<Alignment ss:Vertical="Bottom"/><Borders/><Font/><Interior/><NumberFormat/><Protection/>
</Style>
</Styles>
<Worksheet ss:Name="Reporte General">
<Table>
<xsl:for-each select="map/entry">
<Row>
<Cell>
<Data ss:Type="String">Apoderado</Data>
</Cell>
<Cell>
<Data ss:Type="String">Rut</Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Apoderado/nombre"/></Data>
</Cell>
<Cell>
<Data ss:Type="String"> <xsl:value-of select="Apoderado/rut"/></Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String">Notas</Data>
</Cell>
</Row>
<xsl:for-each select="logica.reportes.ReporteApoderado/notas/entry">
<Row>
<Cell>
<Data ss:Type="String">Estudiante</Data>
</Cell>
<Cell>
<Data ss:Type="String">Rut</Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Estudiante/nombre"/></Data>
</Cell>
<Cell>
<Data ss:Type="String"> <xsl:value-of select="Estudiante/rut"/></Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String">Asignatura</Data>
</Cell>
<Cell>
<Data ss:Type="String">Nota</Data>
</Cell>
</Row>
<xsl:for-each select="Nota-array/Nota">
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="asignatura__id__fk/nombre"/></Data>
</Cell>
<Cell>
<Data ss:Type="String"><xsl:value-of select="asignatura__id__fk/valor"/></Data>
</Cell>
</Row>
</xsl:for-each>
</xsl:for-each>
<xsl:for-each select="logica.reportes.ReporteApoderado/planificaciones/entry">
<Row>
<Cell>
<Data ss:Type="String">Estudiante</Data>
</Cell>
<Cell>
<Data ss:Type="String">Rut</Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Estudiante/nombre"/></Data>
</Cell>
<Cell>
<Data ss:Type="String"> <xsl:value-of select="Estudiante/rut"/></Data>
</Cell>
</Row>
<xsl:for-each select="map/entry">
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Asignatura/nombre"/></Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String">Tipo</Data>
</Cell>
<Cell>
<Data ss:Type="String">Fecha</Data>
</Cell>
</Row>
<xsl:for-each select="Actividad-array/Actividad">
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="tipo" /></Data>
</Cell>
<Cell>
<Data ss:Type="String"> <xsl:value-of select="fecha" /></Data>
</Cell>
</Row>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
<Row>
<Cell>
<Data ss:Type="String">Anotaciones</Data>
</Cell>
</Row>
<xsl:for-each select="logica.reportes.ReporteApoderado/anotaciones/entry">
<Row>
<Cell>
<Data ss:Type="String">Estudiante</Data>
</Cell>
<Cell>
<Data ss:Type="String">Nombre</Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Estudiante/nombre" /></Data>
</Cell>
<Cell>
<Data ss:Type="String"><xsl:value-of select="Estudiante/rut" /></Data>
</Cell>
</Row>
<Row>
<Cell>
<Data ss:Type="String">Profesor</Data>
</Cell>
<Cell>
<Data ss:Type="String">Tipo</Data>
</Cell>
<Cell>
<Data ss:Type="String">Descripcion</Data>
</Cell>
</Row>
<xsl:for-each select="Anotacion-array/Anotacion">
<Row>
<Cell>
<Data ss:Type="String"><xsl:value-of select="profesor__id__fk/nombre" /></Data>
</Cell>
<Cell>
<Data ss:Type="String"><xsl:choose><xsl:when test="positiva = 'true'"> Positiva</xsl:when><xsl:otherwise>Negativa</xsl:otherwise></xsl:choose></Data>
</Cell>
<Cell>
<Data ss:Type="String"> <xsl:value-of select="descripcion" /></Data>
</Cell>
</Row>
</xsl:for-each>
</xsl:for-each>
</xsl:for-each>
</Table>
<WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel">
<Print>
<ValidPrinterInfo/>
<HorizontalResolution>600</HorizontalResolution>
<VerticalResolution>0</VerticalResolution>
</Print>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>2</ActiveRow>
</Pane>
</Panes>
<ProtectObjects>False</ProtectObjects>
<ProtectScenarios>False</ProtectScenarios>
</WorksheetOptions>
</Worksheet>
</Workbook>
</xsl:template>
</xsl:stylesheet>