Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Xsl page break

Posted on 2002-06-24
3
Medium Priority
?
233 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
1 Comment
 

Accepted Solution

by:
midas_06 earned 120 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Browsing the questions asked to the Experts of this forum, you will be amazed to see how many times people are headaching about monster regular expressions (regex) to select that specific part of some HTML or XML file they want to extract. The examp…
Create a Windows 10 custom Image with custom task bar and custom start menu using XML for deployment.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…
Suggested Courses

824 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