xslt - How to apply different page width for different pages in xsl? This is for generating PDF -
I would like to create a PDF using XML and XSL. On PDF I need different width for different pages. How can I get this?
Thanks and Regards
Krishnan
a full xsl -fo sample:
& lt; Fo: root xmlns: fo = "http://www.w3.org/1999/XSL/Format" & gt; & Lt; To: Layout-Guru-Set & gt; & Lt; Fo: Simple Page-Master Page-Height = "10cm" Page-width = "5cm" Master-Name = "Format 1" & gt; & Lt; Fo: area-body / & gt; & Lt; For /: Simple-Page Master & gt; & Lt; Fo: simple page-master page-height = "5cm" page-width = "10cm" master-name = "format 2" & gt; & Lt; To: Area body / & gt; & Lt; For /: Simple-Page Master & gt; & Lt; For /: Layout-Guru-Set & gt; & Lt; Fo: Page-Sequence Master-Reference = "Format 1" & gt; & Lt; Fo: flow flow -name = "xls-field-body" & gt; & Lt; Fo: block & gt; Test format 1 & lt; / Fo: block & gt; & Lt; For /: Flow & gt; & Lt; For /: Page-Sequence & gt; & Lt; Fo: page-sequence master-context = "format 2" & gt; & Lt; Fo: flow flow -name = "xls-field-body" & gt; & Lt; Fo: block & gt; Test format 2 & lt; / Fo: block & gt; & Lt; For /: Flow & gt; & Lt; For /: Page-Sequence & gt; & Lt; For /: root & gt;
Comments
Post a Comment