2010-06-11 2 views
0

내 PDF의 바닥 글에 렌더링 할 정적 텍스트의 문자를 강조하려하지만 내 xsl에서 올바른 태그 조합을 찾을 수 없습니다. 이것을 어떻게 할 수 있습니까?docbook, fo, pdf 출력에 강조된 텍스트

예 :

<!-- Footer content --> 
<xsl:template name="footer.content"> 
    <xsl:param name="pageclass" select="''"/> 
    <xsl:param name="sequence" select="''"/> 
    <xsl:param name="position" select="''"/> 
    <xsl:param name="gentext-key" select="''"/> 

<fo:block> 
<xsl:choose> 

... 
<xsl:when test="$sequence = 'odd' and $position = 'left'"> 
     <xsl:text>&#x00A9;<emphasis>My</emphasis>Company</xsl:text> 
</xsl:when> 
... 
</xsl:choose> 
</fo:block> 
</xsl:template> 

이 예 xsltproc에 오류를 발생시킨다. 도움!

+0

무엇이 오류인지 알려 주시면 –

답변

0

fo:inline을 사용해보세요.

나는 당신이 달성하려고하는 강조의 종류 또는 당신이 얻고있는 오류의 종류,하지만 이런 식으로 뭔가를 시도 확실하지 않다 :

<!-- Footer content --> 
<xsl:template name="footer.content"> 
    <xsl:param name="pageclass" select="''"/> 
    <xsl:param name="sequence" select="''"/> 
    <xsl:param name="position" select="''"/> 
    <xsl:param name="gentext-key" select="''"/> 

<fo:block> 
<xsl:choose> 

... 
<xsl:when test="$sequence = 'odd' and $position = 'left'"> 
     <xsl:text>&#x00A9;</xsl:text><fo:inline text-decoration="underline">My</fo:inline><xsl:text>Company</xsl:text> 
</xsl:when> 
... 
</xsl:choose> 
</fo:block> 

희망이 도움이됩니다.

+0

이 (가) 을 (를) (으)로 변경했을 때 작동합니다. D – Mica