At 2011-10-19 16:37 +0200, =?iso-8859-2?Q?Jan_To=B9ovsk=FD?= wrote:
>Ken, thanks again!
>
> > Yes, you missed that I instructed you to immediately define the
> > marker to be empty after defining the marker to have the ID
>
>Actually I've tried this approach as well (althought it seemed to me
>quite strange :-)
Not strange at all. I've needed the technique quite often. It is a
matter of ensuring the flow has what you need when the processor is
looking backwards for something previously defined.
>, but in this case links didn't work at all. So I thought I
>understood it incorrectly. Now I have to admit, that the following
>code really does nothing (like the second marker without id would be
>used instead):
>
><fo:flow flow-name="xsl-region-body">
> <fo:marker marker-class-name="target">
> <fo:block id="{$id}"/>
> </fo:marker>
> <fo:marker marker-class-name="target"/>
> ...
>
> > Actually, I'm surprised your approach didn't work because you did
> > limit the retrieve boundary to only the page. Thus, it shouldn't
> > have looked on earlier pages to find the marker defined earlier. I
> > wonder if this is an XEP issue that needs to be explored.
>
>I look for any explanation as well.
The fault is mine, Jan. I neglected to put the two markers in
different qualifying areas. One is not allowed to have sibling
markers of the same class name:
6.13.5 fo:marker
It is an error if two or more fo:markers that share the same
parent have the same "marker-class-name" property value.
The XSL-FO below works just fine in XEP.
Please forgive my oversight.
. . . . . . . . . Ken
<?xml version="1.0" encoding="US-ASCII"?><!--jan.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="before" extent="15mm"/>
</simple-page-master>
</layout-master-set>
<page-sequence master-reference="frame">
<static-content flow-name="before">
<retrieve-marker retrieve-class-name="target"/>
</static-content>
<flow flow-name="frame-body">
<block>
<marker marker-class-name="target">
<block id="hello">
Hello
</block>
</marker>
</block>
<block>
<marker marker-class-name="target"/>
</block>
<block>This is a test on page 1</block>
<block break-before="page">This is a test on page 2</block>
<block break-before="page">
Jump to
<basic-link internal-destination="hello">first page</basic-link>
</block>
</flow>
</page-sequence>
</root>
-- Contact us for world-wide XML consulting and instructor-led training Crane Softwrights Ltd. http://www.CraneSoftwrights.com/f/ G. Ken Holman mailto:gkholman@CraneSoftwrights.com Google+ profile: https://plus.google.com/116832879756988317389/about Legal business disclaimers: http://www.CraneSoftwrights.com/legal !DSPAM:87,4e9ee73163732090014422! _______________________________________________ (*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support (*) By using the Service, you expressly agree to these Terms of Service http://w ww.renderx.com/terms-of-service.htmlReceived on Wed Oct 19 08:05:46 2011
This archive was generated by hypermail 2.1.8 : Wed Oct 19 2011 - 08:05:47 PDT