page-masters for different 1st page

2002-05-14 Thread PATEL, DINESH (ISD)

I now have a requirement for a document to have different content in the
region-after for the first page.
I've thought about using different fo:simple-page-master elements for this
and also using something like:

fo:page-sequence-master master-name=seq 
   fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference master-name=first
page-position=first /
  fo:conditional-page-master-reference master-name=rest
page-position=rest /
   /fo:repeatable-page-master-alternatives
/fo:page-sequence-master


Re: page-masters for different 1st page

2002-05-14 Thread Ralf Steppacher
From what I can gleam from the examples all this allows me to do is have
different margins for the first page.  My first page needs to have different
content in the region-after only for the first page.
Is there a way of doing this?
You are nearly there... You can name your region-after within the two 
simple-page-masters differently and assign different content to them.

fo:layout-master-set
fo:simple-page-master page-height=297mm page-width=210mm
margin-top=40mm margin-bottom=10mm
margin-left=25mm margin-right=25mm
master-name=PageMasterOneOne
fo:region-body margin-top=40mm margin-bottom=45mm/
fo:region-after extent=40mm display-align=after
region-name=footerTOC1/
/fo:simple-page-master
fo:simple-page-master page-height=297mm page-width=210mm
margin-top=25mm margin-bottom=10mm
margin-left=25mm margin-right=25mm
master-name=PageMasterOneTwo
fo:region-body margin-top=30mm margin-bottom=25mm/
fo:region-after extent=20mm display-align=after
region-name=footerTOC2/
/fo:simple-page-master
fo:page-sequence-master master-name=PageMasterOne
fo:repeatable-page-master-alternatives
fo:conditional-page-master-reference
master-reference=PageMasterOneOne
page-position=first/
fo:conditional-page-master-reference
master-reference=PageMasterOneTwo
page-position=rest/
/fo:repeatable-page-master-alternatives
/fo:page-sequence-master
fo:layout-master-set
fo:page-sequence master-reference=PageMasterOne
!-- Static content for page 1 --
fo:static-content flow-name=footerTOC1
fo:blockContent of footer for first page./fo:block
/fo:static-content
fo:static-content flow-name=footerTOC2
fo:blockContent of footer for all other pages./fo:block
/fo:static-content
!-- Content for page sequence. --
fo:flow flow-name=xsl-region-body
fo:blockContent of the page sequence./fo:block
/fo:flow
/fo:page-sequence
HTH
Ralf


Re: page-masters for different 1st page

2002-05-14 Thread Jeremias Maerki
You're almost there. All you have to do now is apply a non-default
region-name to the region-after of one of the simple-page-masters. Then
you create a new fo:static-content and set the flow-name to this other
name. Example (uninteresting stuff is left out):

fo:simple-page-master master-name=first
  fo:region-body /
  fo:region-after region-name=first-region-after/
/fo:simple-page-master
fo:simple-page-master master-name=rest
  fo:region-body/
  fo:region-after/
/fo:simple-page-master
[..]
fo:static-content flow-name=first-region-after/
[..]
fo:static-content flow-name=xsl-region-after/


 I now have a requirement for a document to have different content in the
 region-after for the first page.
 I've thought about using different fo:simple-page-master elements for this
 and also using something like:
 
 fo:page-sequence-master master-name=seq 
fo:repeatable-page-master-alternatives
   fo:conditional-page-master-reference master-name=first
 page-position=first /
   fo:conditional-page-master-reference master-name=rest
 page-position=rest /
/fo:repeatable-page-master-alternatives
 /fo:page-sequence-master
 
 From what I can gleam from the examples all this allows me to do is have
 different margins for the first page.  My first page needs to have different
 content in the region-after only for the first page.
 
 Is there a way of doing this?

Cheers,
Jeremias Märki

mailto:[EMAIL PROTECTED]

OUTLINE AG
Postfach 3954 - Rhynauerstr. 15 - CH-6002 Luzern
Tel. +41 41 317 2020 - Fax +41 41 317 2029
Internet http://www.outline.ch



RE: page-masters for different 1st page

2002-05-14 Thread PATEL, DINESH (ISD)

Thank you - This is exactly what I needed.


 -Original Message-
 From: Ralf Steppacher [SMTP:[EMAIL PROTECTED]
 Sent: Tue 14 May 2002 09:53
 To:   [EMAIL PROTECTED]
 Subject:  Re: page-masters for different 1st page
 
 From what I can gleam from the examples all this allows me to do is have
  different margins for the first page.  My first page needs to have
 different
  content in the region-after only for the first page.
  
  Is there a way of doing this?
 
 You are nearly there... You can name your region-after within the two 
 simple-page-masters differently and assign different content to them.
 
 fo:layout-master-set
  fo:simple-page-master page-height=297mm page-width=210mm
  margin-top=40mm margin-bottom=10mm
  margin-left=25mm margin-right=25mm
  master-name=PageMasterOneOne
  fo:region-body margin-top=40mm margin-bottom=45mm/
  fo:region-after extent=40mm display-align=after
  region-name=footerTOC1/
  /fo:simple-page-master
  fo:simple-page-master page-height=297mm page-width=210mm
  margin-top=25mm margin-bottom=10mm
  margin-left=25mm margin-right=25mm
  master-name=PageMasterOneTwo
  fo:region-body margin-top=30mm margin-bottom=25mm/
  fo:region-after extent=20mm display-align=after
  region-name=footerTOC2/
  /fo:simple-page-master
 
  fo:page-sequence-master master-name=PageMasterOne
  fo:repeatable-page-master-alternatives
  fo:conditional-page-master-reference
  master-reference=PageMasterOneOne
  page-position=first/
  fo:conditional-page-master-reference
  master-reference=PageMasterOneTwo
  page-position=rest/
  /fo:repeatable-page-master-alternatives
  /fo:page-sequence-master
 fo:layout-master-set
 
 
 fo:page-sequence master-reference=PageMasterOne
  !-- Static content for page 1 --
  fo:static-content flow-name=footerTOC1
  fo:blockContent of footer for first page./fo:block
  /fo:static-content
  fo:static-content flow-name=footerTOC2
  fo:blockContent of footer for all other pages./fo:block
  /fo:static-content
 
  !-- Content for page sequence. --
  fo:flow flow-name=xsl-region-body
  fo:blockContent of the page sequence./fo:block
  /fo:flow
 /fo:page-sequence
 
 
 HTH
 Ralf


This email and any accompanying documents are intended only for the named 
recipient, are confidential and may be privileged. If you are not the intended 
recipient please notify us immediately by mailto:[EMAIL PROTECTED] and you must 
not copy, disclose or otherwise use this message. Unauthorised use is strictly 
prohibited and may be unlawful. The content of this email represents the view 
of the individual and not the company. The company reserves the right to 
monitor the content of all emails in accordance with lawful business practice.

Whilst attachments are virus checked before transmission, Britannic Assurance 
plc does not accept any liability in respect of any virus which is not detected.

Britannic Assurance plc, No.3002 is registered in England and maintains its 
registered office at 1 Wythall Green Way, Wythall, Birmingham B47 6WG.
Telephone: 0870 887 0001
Fax: 0870 887 0002
Website: www.britannicassurance.com

Britannic Assurance plc, Britannic Unit Linked Assurance Limited, Britannic ISA 
Managers Limited and Britannic Unit Trust Managers Limited are regulated by the 
Financial Services Authority. Each of these companies is a member of the 
Britannic marketing group which only advises on and sells its own life 
assurance, pension, unit trust and ISA products.