473,405 Members | 2,210 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,405 software developers and data experts.

XSL change page orientation for one page

178 100+
Hi,

Heres my xsl stylesheet. Its work in progress but it works. What I want to do however is to make one page in the middle (drawings) a landscape page. Can anyone explain how to do this as all attempts I have made have just gave me an error.

[HTML]<?xml version="1.0" encoding="ISO-8859-1" ?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="A4"
page-height="29.7cm" page-width="21.0cm" margin="2cm">
<fo:region-body/>
</fo:simple-page-master>

</fo:layout-master-set>

<fo:page-sequence master-reference="A4">
<fo:flow flow-name="xsl-region-body">
<fo:block-container absolute-position="absolute"
top="-2cm" left="-3cm" width="800" height="800px"
background-image="file:tes_bg.jpg">
<fo:block/>
</fo:block-container>

<fo:block text-align="end" space-after="40pt">
<fo:external-graphic src="file:tes_200px.jpg" width="20%" height="20%"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="18pt" text-align="center" space-before="5cm">
Quote: <xsl:value-of select="quote/details/proj_id"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="18pt" text-align="center" space-before="1cm">
<xsl:value-of select="quote/company/comp_name"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="18pt" text-align="center" space-after="40pt">
<xsl:value-of select="quote/details/proj_name"/>
</fo:block>
<fo:block text-align="center" space-after="150pt">
<fo:external-graphic src="file:panel.jpg" width="20%" height="20%"/>
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" text-align="center" space-before="12cm">
18 Derryloran Industrial Estate
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" text-align="center">
Sandholes Road
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" text-align="center">
Cookstown
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" text-align="center">
Co. Tyrone
</fo:block>
<fo:block font-family="Helvetica" font-size="10pt" text-align="center">
Tel: (028) 8676 1141 Fax: (028) 8676 9732 Email: info@tes-ni.com
</fo:block>



<!-- Nextpage: Table of contents -->
<fo:block break-before="page" space-before="2in" space-after="2in">
<fo:block-container absolute-position="absolute"
top="-2cm" left="-3cm" width="800" height="800px"
background-image="file:tes_bg.jpg">
<fo:block/>
</fo:block-container>
Index Page
</fo:block>


<!-- Nextpage: Quote -->
<fo:block break-before="page" space-before="2in" space-after="2in">
<fo:block-container absolute-position="absolute"
top="-2cm" left="-3cm" width="800" height="800px"
background-image="file:tes_bg.jpg">
<fo:block/>
</fo:block-container>
Quote
</fo:block>

<!-- Nextpage: Drawings of each panel -->
<fo:block break-before="page" space-before="2in" space-after="2in">
Drawings
</fo:block>

<!-- Nextpage: Company profile -->
<fo:block break-before="page" space-before="2in" space-after="2in">
<fo:block-container absolute-position="absolute"
top="-2cm" left="-3cm" width="800" height="800px"
background-image="file:tes_bg.jpg">
<fo:block/>
</fo:block-container>
Company Profile
</fo:block>

<!-- Nextpage: Terms and conditions of quote -->
<fo:block break-before="page" space-before="2in" space-after="2in">
<fo:block-container absolute-position="absolute"
top="-2cm" left="-3cm" width="800" height="800px"
background-image="file:tes_bg.jpg">
<fo:block/>
</fo:block-container>
Terms and Conditions
</fo:block>

</fo:flow>

</fo:page-sequence>



</fo:root>
</xsl:template>
</xsl:stylesheet>[/HTML]
Oct 14 '08 #1
0 2853

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Ronny Sigo | last post by:
Hello all, I am trying to programmatically change the orientation of a MS Word Document to landscape. I must be doing something wrong cause it does not work ... can anybody help me with this?...
1
by: Mehul Gadhia | last post by:
Hi All, If anybody is aware please let me know how do i change the orientation of the toolbar of the .net windows control. When i drag out the toolbar its orientation is horizontal, then once...
2
by: Sean McKaharay | last post by:
I want to find out how I can change the page orientation of a printer.
0
by: Big George | last post by:
Hello Gurus, I'm developing with VS2003, ASP.NET with Crystal Report for VS.NET, and I need to change the paper orientation of a Crystal Report to Horizontal... How to do that? I tried to...
0
by: matvin | last post by:
When generating .NET Crystal Reports with Page Orientation as Landscape, a Blank page gets generated along with the report. But this is not the case when the page orientation is set with Portrait.Any...
1
by: christianlott1 | last post by:
This is easy to do in word but is it possible in access? I want the first page to print on company letterhead and other pages to print on regular paper. Some of the pages I want landscape, others...
2
by: satnamsarai | last post by:
it is possible to change page orientation to landscape from asp.net page? I am using window.print() dialog to print a page and I would like that page to print automatically in landscape view.
0
by: brett | last post by:
Hi, I need to build a pdf report by using Crystal report which including several subreport. The problem is that the primary page orientation is portrait and some subreports' orientation is...
2
by: jkdudhatra | last post by:
How To Change Page Orientation Of Default Printer In Visual Basic At Run Time ?
3
by: AndyDelbaere | last post by:
Hello, I have a word document with multiple pages. I want to select a random page and be able to change the orientation (from portrait to landscape and vice versa) This should only change the...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.