|
Subject: Re: [xsl] RE: Seperating Heading from Content From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 08 Nov 2011 11:47:05 -0500 |
Ken, I've worked with <fo:static-content> before but not with markers. So could you provide me some code examples on how this works.
<?xml version="1.0" encoding="US-ASCII"?><!--toon.fo--> <root xmlns="http://www.w3.org/1999/XSL/Format" font-family="Times" font-size="20pt">
<layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body" margin-top="15mm"/>
<region-before region-name="header" extent="15mm"/>
</simple-page-master>
</layout-master-set> <page-sequence master-reference="frame">
<static-content flow-name="header">
<block><retrieve-marker retrieve-class-name="h2"/></block>
</static-content>
<flow flow-name="frame-body">
<!--define the header at the start of each page-->
<block break-before="page">
<marker marker-class-name="h2">First H2</marker>
</block>
<!--empty the header for any page breaks before the next header-->
<block><marker marker-class-name="h2"/></block>
<block>This is a test</block>
<block>This is a test</block>
<block>This is a test</block>
<block>This is a test</block>
<block break-before="page">This is a test</block>
<block>This is a test</block>
<block>This is a test</block>
<!--define the header at the start of each page-->
<block break-before="page">
<marker marker-class-name="h2">Second H2</marker>
</block>
<!--empty the header for any page breaks before the next header-->
<block><marker marker-class-name="h2"/></block>
<block>This is a test</block>
<block>This is a test</block>
<block>This is a test</block>
<block>This is a test</block>
<block break-before="page">This is a test</block>
<block>This is a test</block>
</flow>
</page-sequence>
</root>
-- Contact us for world-wide XML consulting and instructor-led training Free 5-hour video lecture: XSLT/XPath 1.0 & 2.0 http://ude.my/t37DVX Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| [xsl] RE: Seperating Heading from C, Struijk, Toon van de | Thread | Re: [xsl] RE: Seperating Heading fr, Wendell Piez |
| [xsl] RE: Seperating Heading from C, Struijk, Toon van de | Date | Re: [xsl] RE: Seperating Heading fr, Wendell Piez |
| Month |