Solved

Xsl page break

Posted on 2002-06-24
3
223 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
3 Comments
 

Accepted Solution

by:
midas_06 earned 30 total points
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
Introduction In my previous article (http://www.experts-exchange.com/Microsoft/Development/MS-SQL-Server/SSIS/A_9150-Loading-XML-Using-SSIS.html) I showed you how the XML Source component can be used to load XML files into a SQL Server database, us…
This video discusses moving either the default database or any database to a new volume.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now