RE: [xsl] generating rows for tables and footnote numbering probl em

Subject: RE: [xsl] generating rows for tables and footnote numbering probl em
From: "Whitney, Dan (CanWest Interactive)" <DWhitney@xxxxxxxxxxx>
Date: Thu, 8 Jul 2004 11:31:43 -0400
OK sorry about that, I actually included the expected output in comments in
the xml instance and the space was added by the mailer and next time I'll
remove the local references. Again any generated number in the first cell in
a column is working as it should, it is somewhere in the process-xml-subset
template or the following-sibling::RECORDITEM that things are going awry.
Anyway here is the html with commented expected output:

<table class="finstattext" width="600" border="1" cellspacing="0"
cellpadding="2">
   <tr>
      <td align="left">1983</td>
      <td align="right">8,239,030
<!--
correct generates a 1
href is 2626501
-->         
         <a href="#2626501"><sup class="bold">1</sup></a></td>
      <td align="right">5,404,650</td>
      <td align="right">676,265
<!--
correct generates a 2
href is 2626502 
-->
         <a href="#2626502"><sup class="bold">2</sup></a></td>
      <td align="right">4,123,820</td>
      <td align="right">116,548
<!--
incorrect generates a 2 should generate a 1
href is 2626501 
-->
         <a href="#2626501"><sup class="bold">2</sup></a></td>
      <td align="right">n.a.
<!--
correct generates a 2
href is 2626502 
-->
         <a href="#2626502"><sup class="bold">2</sup></a></td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.
<!--
incorrect generates a 2 should generate a 1
href is 2626501 
-->
         <a href="#2626501"><sup class="bold">2</sup></a></td>
   </tr>
   <tr>
      <td align="left">1984</td>
      <td align="right">9,055,280
<!--
correct generates a 2
href is 2626502 
-->         
         <a href="#2626502"><sup class="bold">2</sup></a></td>
      <td align="right">5,888,660</td>
      <td align="right">1,011,250</td>
      <td align="right">4,881,290</td>
      <td align="right">251,532</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
   </tr>
   <tr>
      <td align="left">1985</td>
      <td align="right">8,846,090
         
<!--
correct generates a 1
href is 2626501 
-->
         <a href="#2626501"><sup class="bold">1</sup></a></td>
      <td align="right">4,866,580</td>
      <td align="right">906,269</td>
      <td align="right">5,300,100</td>
      <td align="right">(691,021)</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
      <td align="right">n.a.</td>
   </tr>
</table>
 

-----Original Message-----
From: David Carlisle [mailto:davidc@xxxxxxxxx]
Sent: July 8, 2004 10:59 AM
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re: [xsl] generating rows for tables and footnote numbering
problem




> It works perfectly
> for attribute colname with values of 1 but all other values are not
working
> properly

> recordref does not work although correct number is generated - "2" is
> generated

you say it's not working properly but you don't say what you want it to
do. the "2" cases look to be working the same way as the "1" cases to
me.
What output did you expect?


By the way your xml file won't run anywhere other than your machine if
you leave the doctype as you had it. It would have helped people run
your code if you'd just had it as

<PUBLICATION>
...

since you don't actually need all the entity definitions to which you
gave local references.


similarly your xslt file has been scrambled (possibly by your mailer)
<xsl:stylesheet
    version="1.0"
    xmlns:xsl=" http://www.w3.org/1999/XSL/Transform
<http://www.w3.org/1999/XSL/Transform> ">
 
You can't have a space before http and what's that
<http://www.w3.org/1999/XSL/Transform>
doing there

there were several instances of

 <a href=" #{@idref <mailto:#{@idref> }">

which I guess should be

 <a href="#{@idref}">

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread