| Author |
Message |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 19/04/2011 18:21:36
|
vijaya
Joined: 19/04/2011 17:02:52
Messages: 5
Offline
|
Hi,
I am new to XSL Fast 4.0. I have a 2 page layout.
I want to know..
1. How to use For-each for pages instread of each block.
2. How to add blank pages in pdf using the tool.
Appreciate a quick response.
This message was edited 1 time. Last update was at 19/04/2011 18:21:55
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 19/04/2011 18:30:33
|
Victor Krapivin
Joined: 04/06/2009 10:12:44
Messages: 55
Online
|
In XSLfast the page groupings are direct equivalent to for-each, so all you need - just specify filter/grouping to page using context menu, tool bar, or inspector window.
Concerning blank pages, can you explain a bit what kind of blank pages you need?
If you need such blank page, just add new page sequence, and order the right place using Layout/Combine dialog. For more complex case can you explain it a bit here, to suggest something?
Thanks.
|
Best regards,
Victor Krapivin |
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 20/04/2011 13:18:21
|
vijaya
Joined: 19/04/2011 17:02:52
Messages: 5
Offline
|
Thanks for a quick response Victor.
Following your steps, now I am able to loop around the pages, but
1. XML (dynamic) data is missing in the output for some tags.
2. main page loops first and then the following pages. where in I want both the pages to repeat one after another for each user. So, that chopping the pdfs for each member will be st.forward. I am attaching the xml file and the xsf file, for your reference.
Let me know where I am going wrong.
Thanks in advace.
Vijaya
| Filename |
HS2Template_foreach.xsf |
Download
|
| Description |
This is the xsl-fast file |
| Filesize |
1044 Kbytes
|
| Downloaded: |
75 time(s) |
| Filename |
Sample.xml |
Download
|
| Description |
This is the datafile, with 2 members. I want the layout to be generated as is for each members in the datafile. |
| Filesize |
16 Kbytes
|
| Downloaded: |
80 time(s) |
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 21/04/2011 15:24:07
|
vijaya
Joined: 19/04/2011 17:02:52
Messages: 5
Offline
|
Hi,
any luck?
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 21/04/2011 15:59:46
|
vijaya
Joined: 19/04/2011 17:02:52
Messages: 5
Offline
|
Hi Victor,
Here are the supporting attachments for the earlier post.
Any help would be appreciated.
Thanks in advance.
Vijaya
| Filename |
HS2-XSL-Fast Output.pdf |
Download
|
| Description |
Using the layout and XML file I attached in the earlier post, this is the output I am getting |
| Filesize |
88 Kbytes
|
| Downloaded: |
105 time(s) |
| Filename |
HS2Template_BIP.pdf |
Download
|
| Description |
This is the required output I am looking for. |
| Filesize |
160 Kbytes
|
| Downloaded: |
71 time(s) |
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 22/04/2011 09:01:45
|
Paviel Donau
Joined: 04/06/2009 11:50:28
Messages: 10
Offline
|
Hi,
To make this work you’ll need to take the following steps. For starters, objects in pages with a grouping have to use relative xpaths. So, you have to put "Dear {FName}", not "Dear {Member/FName}" in a page grouped to /Members/Member.
Besides, grouping loops each page separately. In case you want to loop all of them together use the Multilayout manager. Break the layout in two, each having one of the pages, select them in the manager and put the desired grouping into the Selection field.
I’ve modified your layout; please see the changes.
| Filename |
HS2.zip |
Download
|
| Description |
|
| Filesize |
276 Kbytes
|
| Downloaded: |
69 time(s) |
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 22/04/2011 14:26:38
|
vijaya
Joined: 19/04/2011 17:02:52
Messages: 5
Offline
|
Hi Paviel,
Thanks for the reply and appreciate you investing time for me. It helped me a lot. I could generate in the editor the ouptut i wanted. But here is the twist, I want to export the layout to xsl and run it through IBex, to generate the output.
Now when I do as mentioned above, I am back at sq.1. So, can you please tell me what features of editor I can use, so that it will generate the xsl for required output.
Appreciate your help.
Thanks, Vijaya
|
|
|
 |
![[Post New]](/forums/templates/default/images/icon_minipost_new.gif) 25/04/2011 06:59:26
|
Paviel Donau
Joined: 04/06/2009 11:50:28
Messages: 10
Offline
|
An XSL file is generated each time you process a layout. Go to Layout -> Layout settings -> Input/Output settings -> Output -> XSLT output and see the path to it.
|
|
|
 |
|
|