Hi J.Pietschmann,
the example of xml document is this:
<document>
        <pThis is a test</p>
        <table>
                <tr>
                        <td>First TD</td>
                        <td>Second TD</td>
                </tr>
        </table>
        <figure>
                <title>FIGURE 1</title>
                <g>GRAPHIC 1</g>
        </figure>
        <p>Paragraph n° 1 after figure 1</p>
        <p>Paragraph n° 2 after figure 1</p>
        <p>Other Text after figure 3
               
                        <figure>
                                <title>FIGURE 2</title>
                                <g>GRAPHIC 2</g>
                        </figure>
                        <p>Paragraph n° 1 after figure 2</p>
               
                <p>Paragraph n° 2 after figure 2</p>
        </p>
        <p>Paragraph n° 3 <u>underline tag</u>after figure 2</p>
        <f>Other TAG</f>
        <p>
                <figure>
                        <title>FIGURE 3</title>
                        <g>GRAPHIC 3</g>
                </figure>Text after figure 3
                <p>Paragraph into onother Paragraph </p>
        </p>
        <p>Last paragraph</p>
</document> 


I think to use following and not following-sibling because the element
<figure> can be found in any position .. as in the preceding example.

If I use the preceding-sibling, I extract only the figure with the same
parent.

The result that I would like to obtain is this : 

1° node group in A4 layout page:
 <pThis is a test</p>
        <table>
                <tr>
                        <td>First TD</td>
                        <td>Second TD</td>
                </tr>
        </table>

2° node group in A3 layout page:
        <figure>
               <title>FIGURE 1</title>
                <g>GRAPHIC 1</g>
        </figure>

3° node group in A4 layout page:
        <p>Paragraph n° 1 after figure 1</p>
        <p>Paragraph n° 2 after figure 1</p>
        <p>Other Text after figure 3

4° node group in A3 layout page:
        <figure>
                <title>FIGURE 2</title>
                <g>GRAPHIC 2</g>
        </figure>

5° node group in A4 layout page:
  <p>Paragraph n° 1 after figure 2</p>
                <p>Paragraph n° 2 after figure 2</p>
        </p>
        <p>Paragraph n° 3 <u>underline tag</u>after figure 2</p>
        <f>Other TAG</f>
        <p>

6° node group in A3 layout page:
        <figure>
                <title>FIGURE 3</title>
                <g>GRAPHIC 3</g>
        </figure>

7°  node group in A4 layout page:
Text after figure 3
                <p>Paragraph into onother Paragraph </p>
        </p>
        <p>Last paragraph</p>



Is possible to obtain this? 

with best regards
Fabio




J.Pietschmann wrote:
> 
> fabio76 wrote:
>> I have a repetition of each paragraph ...and this is no correct.
> 
> The problems are here:
>>                         <xsl:variable name="current-figure-node"
>> select="following::figure[1]"/>
> use
>   <xsl:variable name="current-figure-node" select="."/>
> here and
>>                                    <xsl:apply-templates
>> select="following::node()[generate-id(following::figure[1]) ...
>  
> select="preceding-sibling::node()[generate-id(preceding-sibling::figure[1])
> 
> The "..-sibling" was the reason you got your content processed multiple
> times, and the "following..." was a bug.
> 
> J.Pietschmann
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-change-layout-page-size-tf2912574.html#a8234323
Sent from the FOP - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to