XSL change page orientation for one page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • cleary1981
    New Member
    • Jun 2008
    • 178

    XSL change page orientation for one page

    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:styleshe et 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="absol ute"
    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_2 00px.jpg" width="20%" height="20%"/>
    </fo:block>
    <fo:block font-family="Helveti ca" font-size="18pt" text-align="center" space-before="5cm">
    Quote: <xsl:value-of select="quote/details/proj_id"/>
    </fo:block>
    <fo:block font-family="Helveti ca" font-size="18pt" text-align="center" space-before="1cm">
    <xsl:value-of select="quote/company/comp_name"/>
    </fo:block>
    <fo:block font-family="Helveti ca" 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="Helveti ca" font-size="10pt" text-align="center" space-before="12cm">
    18 Derryloran Industrial Estate
    </fo:block>
    <fo:block font-family="Helveti ca" font-size="10pt" text-align="center">
    Sandholes Road
    </fo:block>
    <fo:block font-family="Helveti ca" font-size="10pt" text-align="center">
    Cookstown
    </fo:block>
    <fo:block font-family="Helveti ca" font-size="10pt" text-align="center">
    Co. Tyrone
    </fo:block>
    <fo:block font-family="Helveti ca" 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="absol ute"
    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="absol ute"
    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="absol ute"
    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="absol ute"
    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]
Working...