[xsl] Conditionally have an even page declaration

Subject: [xsl] Conditionally have an even page declaration
From: Colin DeClue <colin.declue@xxxxxxxxx>
Date: Wed, 11 Jan 2012 13:33:22 -0600
Hey,

Is it possible to conditionally define an even page, based on
something in the xml? I'm trying to do something with <xsl:if>, but I
can't seem to get it to work, and I can't find good examples anywhere
of using it not in a for-each.

This is what I have:

        <xsl:if test="BolReport/ReportType = 'Term'">
          <fo:simple-page-master master-name="even"
            page-width="8.5in"   page-height="11in"
            margin-top="0.13in"  margin-bottom="0.25in"
            margin-left="0.175in" margin-right="0.25in"
background-image="url({BOLReport/TermPath})">
            <fo:region-body/>
          </fo:simple-page-master>
        </xsl:if>

And then in the xml:

<BOLReport>
  ...
  <ReportType>Term</ReportType>
  ...
</BOLReport>

Current Thread