« Return to Thread: Apply-Templates

Re: Apply-Templates

by Alexandre Moraes :: Rate this Message:

Reply to Author | View in Thread

After some tests I think that i know what happens.
If I call pgblk and there´s no match template for the descendants, It will find the <para> template. But if there´s a match template for excample, for <list1> and inside this there´s no call for <para> or the command <apply-template>, it will not proccess the <para> template.

If someone has another idea.

Thanks.


axdmoraes wrote:
A begginner question.
I have this XSL-FO command:

<xsl:apply-templates select="pgblk"/>

and there´s no match template for pgblk.
Just for <para>

and in my XML, I have this hierarchy:

<pgblk>
    <title> balabalaba</title>
    <list1>
        <item1>
            <para>blabla</para>
         </item1>
    </list1>
</pgblk>        

there´s no more call for list1 or item1 template.

The RenderX, will not find the template for <para>, right?
What I have to do to reach the match template para?


Thanks

Alexandre

 « Return to Thread: Apply-Templates