[xsl] compose my document dynamicly!

Subject: [xsl] compose my document dynamicly!
From: Red Light <skydelta98@xxxxxxxxx>
Date: Tue, 1 Jun 2010 02:35:21 -0700 (PDT)
Hi,

i have a dynamic application where i got section(which represent a complete PDF page, i'm using apache fop...), and "block" which are composition to the page , a page could contain
multiple blocks.


i got an xml source which contain the section, and the block ordered like above:


<sectionOrdering>
	<id_section>23</id_section>
	<id_block>23</id_block>
	<nameSection>HR</nameSection>
	<nameBlock>HR</nameBlock>
</sectionOrdering>
<sectionOrdering>
	<id_section>25</id_section>
	<id_block>25</id_block>
	<nameSection>Sales</nameSection>
	<nameBlock>sales_car</nameBlock>
</sectionOrdering>
<sectionOrdering>
	<id_section>25</id_section>
	<id_block>40</id_block>
	<nameSection>Sales</nameSection>
	<nameBlock>sales_moto</nameBlock>
</sectionOrdering>




because i don't know the order of the section of the block ... i have to dynamicly display the section and their blocks..


if i take this example:

<sectionOrdering>
	<id_section>25</id_section>
	<id_block>25</id_block>
	<nameSection>Sales</nameSection>
	<nameBlock>sales_car</nameBlock>
</sectionOrdering>
<sectionOrdering>
	<id_section>25</id_section>
	<id_block>40</id_block>
	<nameSection>Sales</nameSection>
	<nameBlock>sales_moto</nameBlock>
</sectionOrdering>


my xsl template "should"  do  a breakpage , then print the title "Sales" then go fetch dynamicly the blocks (which represent xsl:tempalte with the exact name of the vaue of the <nameBlock>)
and print successivly!



plz could anyone help to prototype this?



and thanks 

Current Thread