Solved

Xsl page break

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
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.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This is a video that shows how the OnPage alerts system integrates into ConnectWise, how a trigger is set, how a page is sent via the trigger, and how the SENT, DELIVERED, READ & REPLIED receipts get entered into the internal tab of the ConnectWise …

943 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

1 Experts available now in Live!

Get 1:1 Help Now