Hi
I have all the fonts available in my System . But the fop does not pick up
the right font while applying.
Here is the code I have in XSLT

      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Times']">
            <fo:inline font-family="Times">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>
      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Arial']">
            <fo:inline font-family="Arial">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>
      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Times']">
            <fo:inline font-family="Times">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>
      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Courier New']">
            <fo:inline font-family="Courier">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>
      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Serif']">
            <fo:inline font-family="Serif">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>
      <xsl:template match="html:[EMAIL PROTECTED]'font-family:Andale Sans']">
            <fo:inline font-family="Andale Sans">
                  <xsl:apply-templates/>
            </fo:inline>
      </xsl:template>

The XML looks like this
 .....
     .....
       <p>
         <span style="font-family:Andale Sans">This line information has
font in Andale Sans above it.
         </span>
       </p>
    .....
......
Is there anything wrong in the code.
What I am doing is trying to generate PDF for an XHTML content using an
XSLT.

Thanks and Regards
Rohit



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

Reply via email to