473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

generating multi-page output using xsl

hi,
I am a newbie at xml/xsl. I m trying to generate a book of papers
marked up in xml. I have a simple xml file which includes the papers,
and i have xsl stylesheet document which generates the output in the
form of ONE xhtml page.
I can generate the entire book as one xhtml file but I want to be able
to generate each paper on a DIFFERENT page. how can i achieve that?
My simple xml file looks as below:

<book>
<contents>
<chapter file="sst96.xml" />
<chapter file="sst98.xml" />
</contents>
</book>

Im accessing the contents of paper xml file as below from witin my xsl
stylesheet templates
<xsl:value-of select="document(@file)/paper/header/title" />

Basically, i want to be able to generate a table of contents with each
paper's title as a link to a seperate xhtml page. But what do i have
to do tell the xsl stylesheet to generate each chapter as a seperate
xhtml page.

Any help would be greatly appreciated.
cheers :)
Waqas Ashraf
Jul 20 '05 #1
2 1945
Waqas Ashraf wrote:

Basically, i want to be able to generate a table of contents with each
paper's title as a link to a seperate xhtml page. But what do i have
to do tell the xsl stylesheet to generate each chapter as a seperate
xhtml page.


Take a look at "Producing Multiple Outputs from an XSL Transformation"
article at MSDN -
http://msdn.microsoft.com/library/en...ml06162003.asp

--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel

Jul 20 '05 #2
On Sat, 04 Oct 2003 23:59:07 -0700, Waqas Ashraf wrote:


Basically, i want to be able to generate a table of contents with each
paper's title as a link to a seperate xhtml page. But what do i have to do
tell the xsl stylesheet to generate each chapter as a seperate xhtml page.


unfortunately this is not part of the XSLT specification, but there are
several extensions in different XSLT processors. as you most likely use
Apache Xalan, you can find the description about how this works in the
apache Xalan documentation:

http://xml.apache.org/xalan-j/extens....html#redirect
Alex
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

37
by: ajikoe | last post by:
Hello, Is anyone has experiance in running python code to run multi thread parallel in multi processor. Is it possible ? Can python manage which cpu shoud do every thread? Sincerely Yours,...
12
by: * ProteanThread * | last post by:
but depends upon the clique: ...
6
by: Joe | last post by:
I have 2 multi-list boxes, 1 displays course categories based on a table called CATEGORIES. This table has 2 fields CATEGORY_ID, CATEGORY_NAME The other multi-list box displays courses based on...
11
by: Gary | last post by:
I'm using Access 2002. I have a field called Job No. It is a text (data type). The reason being that there is an "I" in front of each number i.e. I1234 I1235 etc The problem is that when...
17
by: =?Utf-8?B?R2Vvcmdl?= | last post by:
Hello everyone, Wide character and multi-byte character are two popular encoding schemes on Windows. And wide character is using unicode encoding scheme. But each time I feel confused when...
1
by: mknoll217 | last post by:
I am recieving this error from my code: The multi-part identifier "PAR.UniqueID" could not be bound. The multi-part identifier "Salary.UniqueID" could not be bound. The multi-part identifier...
10
by: shror | last post by:
Hi every body, I need your help in a problem am facing, I have two forms on my website which when submitted they goto single page (confirmation.php) and the two forms are for English and Arabic...
2
by: Aussie Rules | last post by:
Hi, I have a site that Iwant to either display my text in english or french, based on the users prefernces ? I am new to webforms, but I know in winforms, this is pretty easy with a resource...
0
by: Aswanth | last post by:
I'm Working with Asp.Net with C#.. & I'm Generating Reports in SSRS-2005.. Till Now I'm Generating Reports in SSRS-2005 with Stored Procedure.. in Which I'm Generating Reports for One...
1
by: VictorLeo | last post by:
I have an application that this throws with VS 2008 and LINQ everything works well, the problem is when I try to create an installer for this project. Adding a project to install add the main...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.