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 7057421
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T03:59:02+00:00 2026-05-28T03:59:02+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

Customer 2’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 Customer 2’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 Customer 2 at the end of the 3 pages.

Take a look at the sample XML..

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

I need an output like this

  Customer 1 data

  Customer 2 data

  Customer 3 data

  Customer 4 data

  Customer 5 data

  Customer 2' Signature.
  • 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-28T03:59:03+00:00Added an answer on May 28, 2026 at 3:59 am

    This transformation:

    <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/>
    
       <xsl:apply-templates mode="sign" select=
       "customer[@id=2]/SignatureSection"/>
     </xsl:template>
    
     <xsl:template match="customer">
     Customer <xsl:value-of select="position()"/> data
     </xsl:template>
    
     <xsl:template match="SignatureSection"/>
    
    </xsl:stylesheet>
    

    when applied on the following XML document (because the fake XML provided by the lazy OP is useless):

    <t>
        <customer id="1">
         Some Customer1 Data
    
         <SignatureSection id="1">
           Signature of Customer1
         </SignatureSection>
        </customer>
        <customer id="2">
         Some Customer2 Data
         <SignatureSection id="2">
           Signature of Customer2
         </SignatureSection>
        </customer>
        <customer id="3">
         Some Customer3 Data
         <SignatureSection id="3">
           Signature of Customer1
         </SignatureSection>
        </customer>
        <customer id="3">
         Some Customer4 Data
         <SignatureSection id="4">
           Signature of Customer4
         </SignatureSection>
        </customer>
        <customer id="5">
         Some Customer5 Data
         <SignatureSection id="5">
           Signature of Customer5
         </SignatureSection>
        </customer>
    </t>
    

    produces what we guess could be the wanted result:

     Customer 1 data
    
     Customer 2 data
    
     Customer 3 data
    
     Customer 4 data
    
     Customer 5 data
    
           Signature of Customer2
    
    • 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'm generating an HTML report for showing table data in a web application, using
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

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.