PHP Classes

File: xsl/workbooks.xsl

Recommend this page to a friend!
  Classes of Karl Holz  >  PHP Convert Excel to JSON  >  xsl/workbooks.xsl  >  Download  
File: xsl/workbooks.xsl
Role: Auxiliary data
Content type: text/plain
Description: XSLT stylesheet, already embedded into class
Class: PHP Convert Excel to JSON
Convert data from Excel spreadsheet to JSON format
Author: By
Last change: Masive update

Masive code update, added some newer features. look at webpage.php for how the new features are used. look at the ini file for new cell labels
Date: 11 months ago
Size: 1,129 bytes


Class file image Download
<?xml version="1.0" encoding="UTF-8"?>
  <xsl:output method="text" media-type="text/plain"/>
  <xsl:param name="page" select="'xl/worksheets/sheet'" />
  <xsl:param name="r" select="'true'"/>
  <xsl:template match="/"><xsl:apply-templates select="o:workbook|workbook" />
  <xsl:template  match="o:workbook|workbook">[worksheets]<xsl:apply-templates select="o:sheets|sheets" /></xsl:template>
  <xsl:template match="o:sheets|sheets">
    <xsl:for-each select="o:sheet|sheet">
title[]="<xsl:value-of select="@name"/>"
 <xsl:when test="$r='true'">
xml[]="<xsl:value-of select="$page"/><xsl:value-of select="substring-after(@r:id, 'rId')"/>.xml"   
xml[]="<xsl:value-of select="$page"/><xsl:value-of select="@sheetId"/>.xml"
For more information send a message to info at phpclasses dot org.