----- original Nachricht -------- Betreff: RE: Fonts Gesendet: Di 07 Mär 2006 15:26:38 CET Von: "Andreia Oliveira"<[EMAIL PROTECTED]>
> I proceeded as suggested. > The fo file generated by step 1 has no reference to the <strong> or <em> > elements. To be honest: This is not a FO-problem. You should refer to a XSL-mailing list... Basically you do something like: <xsl:template match="formatted-text"> <fo:paragraph> <xsl:apply-templates/> </fo:paragraph> </xsl:template> <xsl:template match="em"> <fo:inline style="..."> <xsl:apply-templates/> </fo:inline> </xsl:template> So the first template applies to your starting tag, and hands over control to other templates, if available. Maybe it's your XPath-syntax (I'm not familiar with this, too *g*), which does not match to your XML-structure (I'm quite sure it doesn't, I'm concerned about that double slash. But I'm definitely sure, that a slash at the beginning means the xml's root. Relative XPath-expression should not contain a slash at the beginning, but may contain them between the nested tag's names. Correct me, if I'm wrong). There's no error due to a correct XML- and XSL-structure but no content matching the XPath-expressions. Maybe you have a look at the docbook-stylesheets, the contain tons of implementation samples to transform rather complex nested xml to fop-renderable XSL-FO. I'd prefer to store the formatted text as <![CDATA[ <!--xsl-fo goes here -->]]> so it's possible to hand it over to the FO-document 1:1. Another way would be to use parts of the DocBook-stylesheets and adapt them to your tagging (better to reuse existing code than re-inventing it). > Proceeded to step two and final pdf file was not generated as supposed. If you don't by four, a cake will lack of 70% matter (which cannot be replaced by dark matter floating 'round the universe and did not recombine to pure energy causing a temperature rise within the kitchen-system). And here the result won't be the same as on the cookbook's picture. To sum it up: This is definitely off-topic, I'm not scared of extra mail but often it needs longer to get an answer if it doesn't belong to the list's context. And if your XSL-FO contains all that fancy formatting but FOP still does not render it as expected, then return to this list... > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: terça-feira, 7 de Março de 2006 13:02 > To: [email protected] > Subject: Re: Fonts > > > ----- original Nachricht -------- > > Betreff: Fonts > Gesendet: Di 07 Mär 2006 13:42:47 CET > Von: "Andreia Oliveira"<[EMAIL PROTECTED]> > [...] > > pdf (using command line), the tags are completely ignored (no text is > output in bold or italic)Also, in the log fop generates on the screen it > does not return any error regarding the fonts. It outputs "[INFO] setting > up > fonts" and continues... Can someone help? > > Did you check your transformation without FOP, e.g. take an extra step to > see, if the FO contains the font-formatting attributes? > > 1. XML->XSLT->FO (xstlproc, xalan, saxon...) 2. FO->FOP-PDF (FOP) > > Thanks, --------------------------------------Andreia > [EMAIL PROTECTED] > "Jetzt Handykosten senken mit klarmobil - 14 Ct./Min.! Hier klicken" www.klarmobil.de/index.html?pid=73025 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
