[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] add


Subject: RE: [xsl] add <br/>
From: Meltem Kogelbauer <meltem.kogelbauer@xxxxxxxxxxxxxxxxxx>
Date: Thu, 24 May 2001 09:47:32 +0100

I don't know if you have received any answer. If not, I will ask you send
the XSL style sheet as well. 

Meltem

-----Original Message-----
From: John Wang [mailto:jwang@xxxxxxxxxxx]
Sent: 22 May 2001 8:49 PM
To: list
Subject: [xsl] add <br/>


Hi,

I am writing xsl to transform a xml to html. I have a table, the number of
rows varies. After the table, I have a button. What I want is put the button
more less in the same position no matter how many rows will be.

here is my xml:
<?xml version="1.0"?>
      <records>
        <record>
          <branch>001</branch>
          <cycle>001</cycle>
          <status>Started, Stock tags/sheets have been
printed.......</status>
          <date>01/04/00</date>
        </record>
        <record>
          <branch>001</branch>
          <cycle>002</cycle>
          <status>Fronzen, 000 of 001 batch(s)
entered...............</status>
          <date>04/21/99</date>
        </record>
        <record>
          <branch>001</branch>
          <cycle>004</cycle>
          <status>Started, Stock tags/sheets have been
printed.......</status>
          <date>04/21/99</date>
        </record>
</records>

Here is the html
<form action=".....">
<table>
<tr>
<td>001</td><td>001</td>...
</tr>
<tr>
<td>001</td><td>001</td>...
</tr>
<tr>
<td>001</td><td>001</td>...
</tr>
</table>
<br/>
<br/>
<input type="submit" value="Go"/>
...
</form>

the question is how can I write a xsl to determine how many <br/>
will be output to the html. For example, if there are 3 record,
I will output 2 <br/>, if there are 1 record, I want to output 4 <br/>.

I am not sure I make my question clear. But you can figure it out.

Thanks a lot.

-John



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



Current Thread
  • [xsl] add <br/>
    • John Wang - Tue, 22 May 2001 14:49:00 -0500
      • <Possible follow-ups>
      • Meltem Kogelbauer - Thu, 24 May 2001 09:47:32 +0100 <=
Keywords