[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

using 2 different fo:page-sequences

Subject: using 2 different fo:page-sequences
From: "Dunning, John" <JDunning@xxxxxxxxx>
Date: Wed, 7 Nov 2001 13:43:05 -0500
fo page sequence master
Greetings all,
I am at a loss as to using fo:page-sequences for different content.  What I
am trying to do is place scanned images (<image>) on a page with different
properties than text pages.  The <image> may occur within the context of a
<para>, but should use the different page-sequence-master.

The xsl is as follows (sorry for so much code):
<xsl:template match="/">
 <fo:root>
   <fo:layout-master-set>
     <fo:simple-page-master master-name="page" page-width="210mm" 
          						 page-height="297mm"

          						 margin-top="20mm"
          						 margin-left="25mm"
          						 margin-right="20mm"
 
margin-bottom="10mm">
               <fo:region-body margin-bottom="20mm" 
               				   margin-right="0mm" 
               				   margin-left="0mm" 
               				   margin-top="0mm"/>
               <fo:region-after extent="10mm"/>
      </fo:simple-page-master>

      <fo:simple-page-master master-name="drawing_page" page-width="210mm" 
                                 page-height="297mm" 
                                 margin-right="0mm" 
                                 margin-left="0mm" 
                                 margin-top="0mm" 
                                 margin-bottom="10mm">
               <fo:region-body margin-bottom="00mm" 
               				   margin-right="0mm" 
               				   margin-left="0mm" 
               				   margin-top="0mm"/>
		      <fo:region-after extent="10mm"/>
      </fo:simple-page-master>
          
      <fo:page-sequence-master master-name="A4">
         <fo:repeatable-page-master-alternatives>
           <fo:conditional-page-master-reference master-name="page"
blank-or-not-blank="any" page-position="any" odd-or-even="any" />
           <fo:conditional-page-master-reference master-name="drawing_page"
blank-or-not-blank="any" page-position="any" odd-or-even="any" />
        </fo:repeatable-page-master-alternatives>
     </fo:page-sequence-master>
 </fo:layout-master-set>

<fo:page-sequence master-name="drawing_page">
   <fo:static-content flow-name="xsl-region-after">
   	<fo:block text-align="center" font-size="12pt" color="black">
  	   <fo:page-number/>
	</fo:block>
   </fo:static-content>
  <fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates select=".//image" />
 </fo:flow>
</fo:page-sequence>

<fo:page-sequence master-name="{$page_size}">
  <fo:static-content flow-name="xsl-region-after">
  		<fo:block text-align="center"
          		          font-size="12pt"
          		          color="black">
          			<fo:page-number/>
  		</fo:block>
  </fo:static-content>
  <fo:flow flow-name="xsl-region-body">
	<xsl:apply-templates select="//para"/>
  </fo:flow>
</fo:page-sequence>
    </fo:root>
</xsl:template>

What is produced is one page-sequence with all of the text, then another
page sequence with all of the images, e.g.,
	<page-sequence master-name="page">
 	   <para>
         <para>
 	    ...
       </page-sequence>
	 <page-sequence master-name="drawing_page">
          <image>
          <image>
          ...
        </page-sequence>

When what I want is:
	<page-sequence master-name="page">
          <para>
      </page-sequence>
      <page-sequence master-name="drawing_page">
          <image>
      </page-sequence>
	<page-sequence master-name="page">
          <para>
      </page-sequence>
      <page-sequence master-name="drawing_page">
          <image>
      </page-sequence>

Any ideas, thoughts, suggestions, etc. welcomed.

Thanks,
John

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.