Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7045941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T02:35:29+00:00 2026-05-28T02:35:29+00:00

I am generating html using XSL at the runtime. My task is to print

  • 0

I am generating html using XSL at the runtime. My task is to print signature section after all the data is printed. I am printing data like this:
Customer 1 data
Customer 2 data
Customer 3 data
Customer 4 data
Customer 5 data
Owner’s Signature
Each customer data has id, name, address, etc., upto 5 details per customer.
At the end of all customer data I need to print Owner’s signature section.
Right now the customer data is running till 3 pages, and owner section is printing in the first page only. But i need owners signature at the end of the 3 pages.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T02:35:30+00:00Added an answer on May 28, 2026 at 2:35 am

    This is a simple example how to produce some wanted output at the end of processing everything else:

    <xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
     <xsl:output omit-xml-declaration="yes" indent="yes"/>
     <xsl:strip-space elements="*"/>
    
     <xsl:template match="/*">
         <xsl:apply-templates/>
    
         Signature:
     </xsl:template>
    
     <xsl:template match="customer">
      Customer <xsl:value-of select="position()"/> data
     </xsl:template>
    </xsl:stylesheet>
    

    when this transformation is applied on the following XML document:

    <t>
     <customer/>
     <customer/>
     <customer/>
     <customer/>
     <customer/>
    </t>
    

    the wanted result is produced:

      Customer 1 data
    
      Customer 2 data
    
      Customer 3 data
    
      Customer 4 data
    
      Customer 5 data
    
    
         Signature:
    

    Explanation:

    All processing (disregarding non-element top nodes (it is safe to assume that no such exist) ) is captured in this template:

     <xsl:template match="/*">
         <xsl:apply-templates/>
    
         Signature:
     </xsl:template>
    

    Because the string "Signature:" is physically the very last in the template, and because an XML document only has a single top element node and this template is selected only once, this guarantees that the string "Signature:" is the last output produced by the transformation.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am generating html using XSL at the runtime. My task is to print
I am generating the html using JSON file. Now I need to pass data
I'm generating a PDF from HTML using Pisa. The pisa documentation (section 11.3) says
I'm generating HTML elements on the fly using javascript. These controls are located within
We're building a module for generating HTML for email newsletters. We've looked into using
I am generating PDF/HTML report from a BIRT template. I am using visibility property
I have ASP.Net code generating my button's HTML for me using divs to get
I'm generating an HTML page via Python, using the Flask framework to receive messages
Motivation and Problem There are several libraries for generating html markup strings using ruby
So I have this simple PHP loop that is generating html table data with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.