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

  • Home
  • SEARCH
  • 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 8279769
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T09:26:06+00:00 2026-06-08T09:26:06+00:00

Lets say we have a table with many rows. When transforming my XML to

  • 0

Lets say we have a table with many rows. When transforming my XML to a PFD via XSLT I want certain rows to not split across a page break. At the moment I have

<table>
  <tr>...</tr>
  <tr>...</tr>
  <div style="page-break-inside:avoid">
    <tr>...</tr>
    <tr>...</tr>
  </div>
  <tr>...</tr>
</table>

That works well to a point. Porblem is that the columns within the div nolonger inherit their widths from the first row in the table as normal.

Is there anything I can do with the div to maintian the inheritance? Or should I try a different approach?

  • 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-06-08T09:26:08+00:00Added an answer on June 8, 2026 at 9:26 am

    It is invalid HTML syntax to have <div> as a child of <table>.

    Try this instead…

    <table>
      <tr>...</tr>
      <tr style="page-break-inside:avoid">...</tr>
      <tr style="page-break-inside:avoid">...</tr>
      <tr>...</tr>
    </table>
    

    Or better still, set it via CSS – either against all <tr> elements…

    <style type="text/css">
      tr { page-break-inside:avoid }
    </style>
    

    … or set class="myTR" as an attribute of the <tr>, and then…

    <tr class="myTR">...</tr>
    
    <style type="text/css">
      .myTR { page-break-inside:avoid }
    </style>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

lets say i have very big table ( many rows) and i have this
Lets say I have a Customers table and an Orders table with a one-to-many
Lets say I have table named Place with columns: placeId int not null auto_increment,
My question is quite straightforward. I have a table, with, lets say x rows,
Lets say I have a simple many-to-many table between tables table1 and table2 that
I have a html table which has several rows - lets say 17 for
Lets say I have table with following columns 1. Client - string. 2. Profit
Lets say I have table with ID int, VALUE string: ID | VALUE 1
Lets say we have a table here, populated with the following data: acc_id1 acc_id2
Lets Say i have a table like this WEB_LIST_TABLE KEY Value ---------------------------------------- 134 google.com

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.