473,383 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

XSL - Dynamically enter blank lines in XHTML

I am creating a 5 page document HTML document with variable table sizes. I am hard coding page breaks after the <DIV> for each page. To assure that all of my page numbers at the bottom of each page is in approximately the same location, I have created a recursive template to enter a certain number of <BR/> elements before the page # footer. However, the <BR/> isn't doing the trick. I've searched high and low for the right character to enter and nothing has worked:

Expand|Select|Wrap|Line Numbers
  1.     <xsl:variable name="newline">
  2.         <!-- 
  3.         <xsl:text>
  4. </xsl:text>        
  5.         <p>&nbsp;</p>
  6.         http://www.danrigsby.com/blog/index.php/category/xslt/
  7.         *&nbsp;<br/>
  8.         <xsl:value-of select="'&#xA;'"/>
  9.         <xsl:text>&#xA;</xsl:text>
  10.         -->
  11.         <br/>*&nbsp;<br/>
  12.     </xsl:variable>    
Also, should I use line position to determine the number of blank lines I need instead of the number of rows in my variable tables?

Thanks for any and all help !!!!
Apr 20 '09 #1
6 4846
Dormilich
8,658 Expert Mod 8TB
is it for print or browser display?
Apr 20 '09 #2
Mainly print, though we will also be viewing inside a browser control in a .NET application. Eventually, we want to convert XHTML to PDF, but no time now to create an XSL-FO. Thanks!
Apr 20 '09 #3
Dormilich
8,658 Expert Mod 8TB
although XSL-FO would probably be the best for print… maybe you can experiment a bit with the print-formatting options in CSS.

other than that I could only imagine to giving divs the height you want for a quick trial.
Apr 20 '09 #4
Any ideas on how to get a blank line into the HTML so that my page # footer can be moved further down the page?
Apr 20 '09 #5
Dormilich
8,658 Expert Mod 8TB
usually inserting breaks, though consider a div with a set height.
Apr 20 '09 #6
Thanks. I'll look into giving a DIV a set height. Does anyone know how I can programmatically insert blank lines in a recursively called template? If I manually place the <BR/> into the XSL, they work in the resulting HTML file, but not in the xsl:template I have.
Apr 20 '09 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

20
by: Nick | last post by:
Right now I'm using document.write("<script language='javascript' src='jsFile" + i + ".js'></script>"); It works -- I have a lot of data in each file and only want the visitor to have to...
11
by: Randell D. | last post by:
Folks, I have seven text boxes which will contain measurements - I would like the user to input their values in the order that I have listed the boxes. How can I therefore make an input...
13
by: Jesse Engle | last post by:
how can i allow a user of my program to enter paragraphs seperated by line spaces using gets() or a similar function? i want the user to be able to enter as many lines as they want, while able...
1
by: dx | last post by:
I'm extremely frustrated with ASP.NET...again! To me this should be as simple as setting oCheckBox.Checked = True.. yet for some reason it isn't. I have a user control (ascx) that that has a...
3
by: Greg Scharlemann | last post by:
I'm not sure the best way to accomplish this... my hunch is with javascript, but I'm not sure if using server side code (PHP) would be easier. I'm adding people to a database. People have a...
5
by: J | last post by:
I am having problems dynamically adding more than one event handler to an input. I have tried the Javascript included at the bottom. The lines inp.attachEvent('onkeyup',...
7
by: RichB | last post by:
I am trying to get to grips with the asp.net ajaxcontrol toolkit, and am trying to add a tabbed control to the page. I have no problems within the aspx file, and can dynamically manipulate a...
1
by: divyac | last post by:
I am doing an inventory project using PHP in which there is a text box.The customer id should be entered in that text box.If that customer id is valid,another text box should be generated in which...
1
by: andersond | last post by:
I have a form that needs to appear to refresh every 5 lines. Right now I am putting blank tables in the area where the questions will go and swapping them for other tables that actually contain the...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.