»User: »Password:   Remember Me? 
>e-novative> Support and Discussion Forums / >e-novative> DocBook Environment (eDE) / DocBook XML Questions / template xsl
Posted:  08 Nov 2007 18:09
Hello

I have 3 files index.html, thing.fo and converter.xsl, I use a parser xalan, and a generator of pdf fop 0.94. My code converter.xsl extracts text of html with a template body, this code xsl I generate a thing.fo to generate a PDF. Problem, I can not
make a template recognize a <br> (new line) in the code converter.xsl and extract the text of html recognizing the <br> for generating op pdf

thanks




<xsl:template match="body">
                  
  <fo:flow flow-name="xsl-region-body">         
     <fo:block-container border-color="black" border-style="solid" border-width="1pt" height="21.6cm" width="11.2cm" top="0.5cm" left="0.65cm" position="absolute">
         
                   
<fo:block text-align="start" font-size="10pt" font-family="serif" line-height="10pt">
<xsl:value-of select="."/>
         
</fo:block>
</fo:block-container>
</fo:flow>
</xsl:template>
Posted:  13 Nov 2007 14:33
Dear

Problem, I can not
make a template .xsl recognize a <br> (new line) from html code.

thanks



<xsl:template match="body">
                 
  <fo:flow flow-name="xsl-region-body">         
     <fo:block-container border-color="black" border-style="solid" border-width="1pt" height="21.6cm" width="11.2cm" top="0.5cm" left="0.65cm" position="absolute">
         
                   
<fo:block text-align="start" font-size="10pt" font-family="serif" line-height="10pt">
<xsl:value-of select="."/>
         
</fo:block>
</fo:block-container>
</fo:flow>
</xsl:template>