Patrick, 

Although next time you might consider posting a such question to a pure XSLT 
newsgroup/mailing list;

You can have to simple-page-master, one defining a portrait layout and the 
other defining the
landscape layout. Name one "portrait" and the other "landscape".

Then you can have something like:
<xsl:template match="XMLTABLE_PARENT_NODE">
        <fo:page-sequence>
                <xsl:attribute name="master-reference">
                        <xsl:choose>
                                <xsl:when test="0 = 
count(xmltable)">portrait</xsl:when>
                                <xsl:otherwise>landscape</xsl:otherwise>
                        </xsl:choose>           
                </xsl:attribute>
                <!-- ... -->
        </fo:page-sequence>
</xsl:template>

Regards,
Dennis JD Myrén
Developer
Oslo Kodebureau
Tel:      (+47) 98 00 11 92
Mail:   [EMAIL PROTECTED]
Web:   www.oslokb.no
-----Original Message-----
From: Talken, Patrick (AGRE) [mailto:[EMAIL PROTECTED] 
Sent: 4. mars 2005 17:50
To: [EMAIL PROTECTED]
Subject: How do you switch between page-sequences?


Is it possible to switch between page-sequences based on an xml tag?


What I need to have is a document that starts with pages in portrait and
then at some point in the document switch to landscape for an unknown
number of pages and then back into portrait for an unknown number of
pages. The switching between portrait and landscape and then back to
portrait will be determined by the presence or absence of the tag
<xmltable>.

If xmltag present use page-sequence for landscape

If xmltag is not present use page-sequence for portrait


Thanks,

Patrick Talken



******************************************
The information contained in, or attached to, this e-mail, may contain 
confidential information and is intended solely for the use of the individual 
or entity to whom they are addressed and may be subject to legal privilege.  If 
you have received this e-mail in error you should notify the sender immediately 
by reply e-mail, delete the message from your system and notify your system 
manager.  Please do not copy it for any purpose, or disclose its contents to 
any other person.  The views or opinions presented in this e-mail are solely 
those of the author and do not necessarily represent those of the company.  The 
recipient should check this e-mail and any attachments for the presence of 
viruses.  The company accepts no liability for any damage caused, directly or 
indirectly, by any virus transmitted in this email.
******************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to