[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Loop around the pages  XML
Forum Index » XSLfast Forum
Author Message
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

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
[WWW]
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 [Disk] Download
 Description This is the xsl-fast file
 Filesize 1044 Kbytes
 Downloaded:  75 time(s)

 Filename Sample.xml [Disk] 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)

vijaya



Joined: 19/04/2011 17:02:52
Messages: 5
Offline

Hi,

any luck?
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 [Disk] 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 [Disk] Download
 Description This is the required output I am looking for.
 Filesize 160 Kbytes
 Downloaded:  71 time(s)

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 [Disk] Download
 Description
 Filesize 276 Kbytes
 Downloaded:  69 time(s)

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
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.
 
Forum Index » XSLfast Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team