Solved

Xsl page break

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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Converting BLOB to XMLTYPE 12 111
XML namaspace 2 50
MS SQL Database Generating XML using query 21 44
XML response optional elements 12 41
The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

778 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