Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 23rd, 2007, 05:55 AM
Authorized User
 
Join Date: Oct 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default Xslt and wml tables display

Hi All,
I am trying to display the tables xslt as display for wml. The number of rows and columns my table will changed from time to time, depending upon the xml i am getting from server. My problem is while trying to load the wml deck in the emulator, its giving "File too large to be loaded" error. I didnt understand why its giving like this. Could any one please help me, its very urgent for me.

I tried with 2 columns by 10 rows , 2 columns by 11 rows, 6 columns by 9 rows and 2 columns by 17 rows and 2 columns by 15 rows.

In the table, it may contain with images as well.( is this a problem?)

Here is my table.xslt code.
Code:
 <?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> 
<xsl:output omit-xml-declaration="yes"/>
 <xsl:template match="table">        
 <xsl:variable name="columnCount" select="count(columns/column)"/>        
     <table columns="{$columnCount}">
        <xsl:apply-templates select="row" />    
     </table>            
</xsl:template>
<xsl:template match="row">
     <tr>
        <xsl:apply-templates select="cell" />    
     </tr>       
</xsl:template>
<xsl:template match="cell">
    <td>
        <xsl:apply-templates/>            
    </td>        
</xsl:template>
</xsl:stylesheet>
Any suggestions would be appreciated.

Thanking you in advance,

Best Regrads,
Aruna.G

 
Old October 23rd, 2007, 06:35 AM
mhkay's Avatar
Wrox Author
 
Join Date: Apr 2004
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

"File too large" indicates a problem that is very specific to the particular products you are using. You need to contact whoever it is that supports those products.

Michael Kay
http://www.saxonica.com/
Author, XSLT Programmer's Reference and XPath 2.0 Programmer's Reference
 
Old October 23rd, 2007, 06:49 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Have you tried just output this to a file and seeing what it gives you (rather than piping straight to the WML emulator).

Without seeing your input XML its hard to say if there is anything wrong with your XSLT.

/- Sam Judson : Wrox Technical Editor -/
 
Old October 23rd, 2007, 10:53 AM
Authorized User
 
Join Date: Oct 2007
Posts: 24
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

Thank you very much for you reply. here is my xml code.

Code:
<?xml-stylesheet type="text/xsl" href="hnxml.xslt"?>
<topic unid='fd098ed42b004c780025737500596825' parentUnid='0a74e4cf5e9a40fa0025737500596817' type='Topic' heading='Microsoft Powerpoint 2007' revheading='Microsoft Powerpoint 2007' level='2' seqNum='12' multiNum='8.2' childSize='0' isEmpty='0'>
 <ancestors>
  <ancestor unid='0a74e4cf5e9a40fa0025737500596817' level='1' heading='Appendix A – How To Customize The Native-HTML Output from Office 2007'/>
 </ancestors>
 <bookmarks>
  <bookmark id='Bookmark18' pos='start' name='_Toc163296191' index='1' />
  <bookmark id='Bookmark19' pos='start' name='_Toc180235518' index='2' />
 </bookmarks>
 <styles>
  <style type='char' styleId='TextEmph3' Name='Text Emph 3' displayName='Text Emph 3' foregroundColor='#000000' fontName='Boldface PS' italic='1' />
  <style type='char' styleId='Absatz-Standardschriftart' Name='Default Paragraph Font' displayName='Default Paragraph Font' fontName='Boldface PS' />
  <style type='para' styleId='Textkrper' Name='Body Text' displayName='Body Text' marginTop='0pt' marginRight='2pt' marginBottom='0pt' lineHeight='12pt' align='left' foregroundColor='#000000' fontName='Helv' fontSize='10pt' italic='1'/>
  <style type='para' styleId='berschrift3' Name='heading 3' displayName='heading 3' marginTop='9pt' marginBottom='3pt' align='left' fontName='Tahoma' fontSize='11pt' bold='1'/>
  <style type='para' styleId='TablePadding' Name='Table Padding' displayName='Table Padding' marginTop='1pt' marginBottom='1pt' align='left' fontName='Arial' fontSize='9pt'/>
  <style type='para' styleId='TableHeading' Name='Table Heading' displayName='Table Heading' marginTop='2pt' marginRight='0pt' marginBottom='2pt' lineHeight='12pt' align='left' foregroundColor='#000000' fontName='Arial' fontSize='9pt' bold='1' italic='0'/>
  <style type='para' styleId='TableText' Name='Table Text' displayName='Table Text' marginTop='3pt' marginRight='0pt' marginBottom='0pt' lineHeight='12pt' align='left' foregroundColor='#000000' fontName='Arial' fontSize='9pt' italic='0'/>
  <style type='para' styleId='Picture' Name='Picture' displayName='Picture' marginTop='3pt' marginRight='0pt' marginBottom='12pt' lineHeight='12pt' align='left' foregroundColor='#000000' fontName='Arial' fontSize='9pt' italic='0'/>
  <style type='para' styleId='TableNote' Name='Table Note' displayName='Table Note' marginTop='3pt' marginRight='0pt' marginBottom='6pt' lineHeight='12pt' align='left' foregroundColor='#000000' fontName='Arial' fontSize='9pt' italic='0' charSpacing='-0.2pt'/>
  <style type='para' styleId='Standard' Name='Normal' displayName='Normal' marginTop='3pt' marginBottom='3pt' align='justify' fontName='Tahoma' fontSize='10pt'/>
  <style type='para' styleId='cell_84d63dc6' marginTop='3pt' marginBottom='3pt' fontName='Boldface PS' fontSize='10pt'/>
  <style type='table' styleId='NormaleTabelle' Name='Normal Table' displayName='Normal Table' marginLeft='-5.4pt'>
   <style type='cell' styleId='wholeTable' paddingLeft='5.4pt' paddingTop='0pt' paddingRight='5.4pt' paddingBottom='0pt' />
  </style>
  <style type='cell' styleId='cell_2fc5f25d' borderLeft='solid #000000 0.5pt' borderTop='solid #000000 0.5pt' paddingLeft='5.4pt' paddingTop='0pt' paddingRight='5.4pt' paddingBottom='0pt' />
  <style type='cell' styleId='cell_21767f07' borderLeft='solid #000000 0.5pt' borderTop='solid #000000 0.5pt' borderRight='solid #000000 0.5pt' paddingLeft='5.4pt' paddingTop='0pt' paddingRight='5.4pt' paddingBottom='0pt' />
  <style type='cell' styleId='cell_e0c600d' borderLeft='solid #000000 0.5pt' borderTop='solid #000000 0.5pt' borderBottom='solid #000000 0.5pt' paddingLeft='5.4pt' paddingTop='0pt' paddingRight='5.4pt' paddingBottom='0pt' />
  <style type='cell' styleId='cell_c13ce317' borderLeft='solid #000000 0.5pt' borderTop='solid #000000 0.5pt' borderRight='solid #000000 0.5pt' borderBottom='solid #000000 0.5pt' paddingLeft='5.4pt' paddingTop='0pt' paddingRight='5.4pt' paddingBottom='0pt' />
 </styles>
 <content>
<para class='berschrift3' tabs='0pt' isFirst='1'><bookmark id='Bookmark18' pos='start' name='_Toc163296191' index='1' /><bookmark id='Bookmark19' pos='start' name='_Toc180235518' index='2' />Microsoft Powerpoint 200<bookmark id='Bookmark15' pos='end' index='3' /><bookmark id='Bookmark16' pos='end' index='4' />7<bookmark id='Bookmark18' pos='end' name='_Toc163296191' index='1' /><bookmark id='Bookmark19' pos='end' name='_Toc180235518' index='2' /></para>
<para class='Textkrper'>To customise the HTML output from Powerpoint, follow this procedure:</para>
<para class='TablePadding' isEmpty='1'></para>
<table class='NormaleTabelle' borderLeft='none' borderTop='none' borderRight='none' borderBottom='none' width='501.6pt'>
 <columns><column width='47.95pt' /><column width='453.6pt' /></columns>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>STEP</para>
</cell>
  <cell class='cell_21767f07'><para class='TableHeading' align='center'>ACTION</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>1</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Login as user which has been chosen to start KT Service and start PowerPoint</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>2</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Create a new empty presentation</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>3</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Click  on the Office Button </para>
<para class='TableText'><image source='topic12_img0001.png' name='image20.png' width='30' height='29' /> </para>
<para class='TableText'>Click - &quot;Save As …&quot; + “Other Formats” + “Save as type: Single File Web Page (*.mht; *.mhtml)”</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>4</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Click &quot;Publish…&quot;</para>
<para class='Textkrper'><image source='topic12_img0002.png' name='image25.png' width='600' height='377' /></para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>5</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>In this dialog, you can choose which options you want to customize:</para>
<para class='Textkrper'><image source='topic12_img0003.png' name='image26.png' width='454' height='350' /></para>
<para class='Textkrper'>One of the opions you can set, is whether to &quot;Display Speaker Notes&quot; or not. </para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>6</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>If you want to customise to a deeper level, click &quot;Web Options&quot;</para>
<para class='Textkrper'><image source='topic12_img0004.png' name='image27.png' width='416' height='343' /></para>
<para class='Textkrper'>Here you can choose specifically the look&amp;feel of your presentations. </para>
<para class='Textkrper'>On the &quot;General&quot; tab, you can choose if you want to display the Navigation Controls, and which text color and font to use in the navigation panel. </para>
<para class='TableNote'><char class='TextEmph3'>Note</char>: <glossary><term>Hyper.Net</term>Hyper.Net is a powerful XML Web Service that transforms corporate documents into relational data. </glossary> will not respect the &quot;Show slide animation while browsing&quot; option.</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>7</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Click on &quot;Browsers&quot; if you want to customise the output to match the version of Internet Browser installed in your organisation:</para>
<para class='Picture'><image source='topic12_img0005.png' name='image28.png' width='414' height='341' /></para>
<para class='Textkrper'>In the &quot;People who view this Web page will be using:&quot; you can choose among various pre-configured options to match the browser you are using -  &quot;Internet Explorer 3.0 or Netscape Navigator 3.0&quot; is the lowest level possible.</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>8</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Leave the section &quot;Files&quot; unaltered - otherwise you might break the Native HTML functionality of <glossary><term>Hyper.Net</term>Hyper.Net is a powerful XML Web Service that transforms corporate documents into relational data. </glossary> completely!</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>9</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>On the tab &quot;Pictures&quot;, you can target the output to a specific monitor size. Matching the size as closely as possible will give you the best quality graphics in the output.</para>
<para class='Textkrper'><image source='topic12_img0006.png' name='image29.png' width='416' height='342' /></para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>10</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Leave the &quot;Encoding&quot; and &quot;Fonts&quot; tabs unaltered - you may break your presentation if you change these settings.</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>11</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Once you have changed the settings you want, click &quot;Ok&quot; and &quot;Publish&quot; to save the changed settings in Powerpoint.</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>12</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Close Powerpoint and say &quot;No&quot; to saving the changes to your presentation. The settings you changed are now stored in Registry, and you can safely close the empty presentation without saving it.</para>
</cell>
 </row>
 <row>
  <cell class='cell_2fc5f25d'><para class='TableHeading' align='center'>13</para>
</cell>
  <cell class='cell_21767f07'><para class='TableText'>Restart the HN KT Service</para>
</cell>
 </row>
 <row>
  <cell class='cell_e0c600d'><para class='TableHeading' align='center'>14</para>
</cell>
  <cell class='cell_c13ce317'><para class='TableText'>Publish a presentation through <glossary><term>Hyper.Net</term>Hyper.Net is a powerful XML Web Service that transforms corporate documents into relational data. </glossary> and test the new options in a variety of browsers to make sure that all users can still use the output.</para>
</cell>
 </row>
</table>
<para class='TablePadding' isEmpty='1'></para>
<para class='Textkrper' isEmpty='1'></para>
 </content>
</topic>

and when I print to a file it displayed correct code but i dont understand why the emulator is giving this.

here is output code which inputs to the emulator

Code:
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.3//EN" "http://www.wapforum.org/DTD/wml13.dtd">

<wml>
  <card id="toc" title="WML Topic">
    <p>
      <b>Microsoft Powerpoint 2007</b>
      <br/>
      <br/>

        &nbsp;
        <small>To customise the HTML output from Powerpoint, follow this procedure:
        &nbsp;
        <table columns="2">
          <tr>
            <td>STEP</td>
            <td>ACTION</td>
          </tr>
          <tr>
            <td>1</td>
            <td>Login as user which has been chosen to start KT Service and start PowerPoint</td>
          </tr>
          <tr>
            <td>2</td>
            <td>Create a new empty presentation</td>
          </tr>
          <tr>
            <td>3</td>
            <td>
              Click &nbsp;on the Office Button 

                <anchor>
                  <go href="res/topic12_img0001.png"/>
                  <img class="hn_image" src="topic12_img0001.png" alt="image20.png"/>
                </anchor>
                <br/>

              Click - &quot;Save As #x85;&quot; + #x93;Other Formats#x94; + #x93;Save as type: Single File Web Page (*.mht; *.mhtml)#x94;
            </td>
          </tr>
          <tr>
            <td>4</td>
            <td>
              Click &quot;Publish#x85;&quot;

                <anchor>
                  <go href="res/topic12_img0002.png"/>
                  <img class="hn_image" src="topic12_img0002.png" alt="image25.png"/>
                </anchor>
                <br/>

            </td>
          </tr>
          <tr>
            <td>5</td>
            <td>
              In this dialog, you can choose which options you want to customize:

                <anchor>
                  <go href="res/topic12_img0003.png"/>
                  <img class="hn_image" src="topic12_img0003.png" alt="image26.png"/>
                </anchor>
                <br/>

              One of the opions you can set, is whether to &quot;Display Speaker Notes&quot; or not. 
            </td>
          </tr>
          <tr>
            <td>6</td>
            <td>
              If you want to customise to a deeper level, click &quot;Web Options&quot;

                <anchor>
                  <go href="res/topic12_img0004.png"/>
                  <img class="hn_image" src="topic12_img0004.png" alt="image27.png"/>
                </anchor>
                <br/>

              Here you can choose specifically the look&amp;feel of your presentations. 
              On the &quot;General&quot; tab, you can choose if you want to display the Navigation Controls, and which text color and font to use in the navigation panel. 
              <small class="TextEmph3">Note: Hyper.Net will not respect the &quot;Show slide animation while browsing&quot; option.</small>
            </td>
          </tr>
          <tr>
            <td>7</td>
            <td>
              Click on &quot;Browsers&quot; if you want to customise the output to match the version of Internet Browser installed in your organisation:

                <anchor>
                  <go href="res/topic12_img0005.png"/>
                  <img class="hn_image" src="topic12_img0005.png" alt="image28.png"/>
                </anchor>
                <br/>

              In the &quot;People who view this Web page will be using:&quot; you can choose among various pre-configured options to match the browser you are using - &nbsp;&quot;Internet Explorer 3.0 or Netscape Navigator 3.0&quot; is the lowest level possible.
            </td>
          </tr>
          <tr>
            <td>8</td>
            <td>Leave the section &quot;Files&quot; unaltered - otherwise you might break the Native HTML functionality of Hyper.Net completely!</td>
          </tr>
          <tr>
            <td>9</td>
            <td>
              On the tab &quot;Pictures&quot;, you can target the output to a specific monitor size. Matching the size as closely as possible will give you the best quality graphics in the output.

                <anchor>
                  <go href="res/topic12_img0006.png"/>
                  <img class="hn_image" src="topic12_img0006.png" alt="image29.png"/>
                </anchor>
                <br/>

            </td>
          </tr>
          <tr>
            <td>10</td>
            <td>Leave the &quot;Encoding&quot; and &quot;Fonts&quot; tabs unaltered - you may break your presentation if you change these settings.</td>
          </tr>
          <tr>
            <td>11</td>
            <td>Once you have changed the settings you want, click &quot;Ok&quot; and &quot;Publish&quot; to save the changed settings in Powerpoint.</td>
          </tr>
          <tr>
            <td>12</td>
            <td>Close Powerpoint and say &quot;No&quot; to saving the changes to your presentation. The settings you changed are now stored in Registry, and you can safely close the empty presentation without saving it.</td>
          </tr>
          <tr>
            <td>13</td>
            <td>Restart the HN KT Service</td>
          </tr>
          <tr>
            <td>14</td>
            <td>Publish a presentation through Hyper.Net and test the new options in a variety of browsers to make sure that all users can still use the output.</td>
          </tr>
        </table>
        &nbsp;&nbsp;
      </small>
    </p>
  </card>

</wml>
Best Regards,
Aruna.G

 
Old October 24th, 2007, 03:39 AM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Have you tried loading that WML file manually. Do you get the same File too large error?If so then its probably because the file is too large, and nothing to do with your XSLT.

/- Sam Judson : Wrox Technical Editor -/





Similar Threads
Thread Thread Starter Forum Replies Last Post
assign XSLT variable to a wml variable arunagottimukkala XSLT 2 October 19th, 2007 05:15 AM
regarding tables creation in xslt barsha XSLT 0 September 28th, 2005 07:50 AM
XSLT and tables surgeon XSLT 1 July 3rd, 2005 03:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.