Ok, I think I have it.
As I am using several transformations, the processing-instruction is no more 
available at the step where I need it.
So, I have added a <linebreak/> node in my XML, that I treat in my 
customization template
<xsl:template match="d:linebreak">
        <br/>
</xsl:template>

Or <fo:block/> in the xsl-fo layer.

Now, it is working

Regards,
Fabien (One can't be wrong while doing both questions and answers :) )



-----Message d'origine-----
De : Fabien Tillier [mailto:[email protected]] 
Envoyé : lundi 23 janvier 2012 14:39
À : [email protected]
Objet : [docbook] RE: Line break mistery

Seems it doesn't work in HTML neither...
I have to dig a bit more. Sorry for the noise..
Regards,
Fabien


-----Message d'origine-----
De : Fabien Tillier [mailto:[email protected]] 
Envoyé : lundi 23 janvier 2012 14:26
À : [email protected]
Objet : [docbook] Line break mistery


Hi List.

I am using the XSL Stylesheets (v 1.75.1) to transform some docbook xml to 
either HTML or XSL-FO.
I would like to have some line-breaks, thus I added
<?linebreak?>
Instructions in my XML.
It is working in my HTML template with
<xsl:template match="processing-instruction('linebreak')">
        <br/>
</xsl:template>
(I have a customization template)
But when I switch to xsl-fo output, 
My template (here with big text so that I can see it easily in the output) is 
never called.

<xsl:template match="processing-instruction('linebreak')">
        ###########################################################
        <fo:block></fo:block>
        ###########################################################
</xsl:template>


Is there a parameter or something to be set so that this processing instruction 
can be used ?
Thanks in advance,
Best regards,
Fabien

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to