xsl-list
[Top] [All Lists]

[xsl] compose my document dynamicly!

2010-06-01 04:35:46
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 


      


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>
  • [xsl] compose my document dynamicly!, Red Light <=