473,396 Members | 1,826 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,396 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 4847
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
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
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

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...
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...
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...
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...
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...
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',...
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...
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...
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...
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
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: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.