Yes, you could likely do something in the intermediate format ... it depends
on what you want to do:
> I need to be able to write an XSL template that will know when it is on an
odd or even page.....
Easy in XEP Intermediate format, even if you have front matter and such.
Just a simple mod(2) operation iterating over pages, ...
> or to have the FO know if it is allowed to share its back side of its
paper based on data in the XML.
Not the FO, but the final form ... then again not sure what you are trying
to accomplish and what it means "...to share its back side of its paper
...". That statement is confusing at best.
If what you are saying is that you want to do something like have "pages"
which may consist of one page or two pages (...i.e. share it's back side
likely without incrementing page number ...) ... then I would write a
document that outputs all the "pages" without page numbers and then use your
logic for deciding whether it is a one-page page or a two-page page to stamp
in page numbers after the fact right in the intermediate format.
We would be happy to help if you have a test sample.
Kevin Brown
RenderX
-----Original Message-----
From: xep-support-bounces@renderx.com
[mailto:xep-support-bounces@renderx.com] On Behalf Of G. Ken Holman
Sent: Friday, August 17, 2012 3:55 PM
To: RenderX Community Support List; RenderX Community Support List
Subject: [xep-support] Re: odd/even pages and using data to tell if you
share a back
At 2012-08-17 17:45 -0500, Nathan Stenzel wrote:
>I need to be able to write an XSL template that will know when it is on
>an odd or even page.....
There is no feedback channel from XSL-FO to XSLT, so you'll never know.
>or to have the FO know if it is allowed to share its back side of its
>paper based on data in the XML.
>
>Any advice?
In XSLT 1:
<fo:page-sequence>
<xsl:attribute name="master-reference">
<xsl:choose>
<xsl:when
test="....something...">name_of_double_sided_master</xsl:when>
<xsl:otherwise>name_of_single_sided_master</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
...
</fo:page-sequence>
>I was Thinking that it would be possible to add a marker to the top of
>a page to show it is odd or even and then use the marker to help decide
>these things,
You cannot inspect marker values and act on them.
>but not sure if that is really possible or if such projects like this
>are possible at all without making it a 2 pass system.
Have you considered what you could do with XEP's intermediate format?
I hope this helps.
. . . . . . . . . . . . Ken
-- Public XSLT, XSL-FO, UBL and code list classes in Europe -- Oct 2012 Contact us for world-wide XML consulting and instructor-led training Free 5-hour lecture: http://www.CraneSoftwrights.com/links/udemy.htm 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,502ecbee63736608634068! _______________________________________________ (*) 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.html _______________________________________________ (*) 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 Fri Aug 17 19:15:14 2012
This archive was generated by hypermail 2.1.8 : Fri Aug 17 2012 - 19:15:18 PDT