Solved

Xsl page break

Posted on 2002-06-24
3
229 Views
Last Modified: 2011-09-20

Can anybody explain about formatting objects in XSL?
What actually "break-after" attribute will do?

I actually want to give a page break..

My intention is to generate multiple html pages out of one XML.

Is there any way to achieve this?
0
Comment
Question by:dsraja
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Accepted Solution

by:
midas_06 earned 30 total points
ID: 7118979
If you don't want to use xslfo.  Here are some comments using DOM:

1. Use the clone node method to clone the part of the original xml doc you want in seperate html pages.

2. Take this node and make it, its own xml doc.

3.  Use the transform method to transform the new xml doc (your specific sepeated node) into an html doc.

4.  Save the resulting transformed page using the save method.

5.  Repeat the process for every page you need to create.

You could use a loop if all the nodes are of the same type and/or level.

xslfo isn't supported by msxml4.0 so if you're using it to perform your transformations, it will give no result, or more likely a blank html page.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question