생성 된 PDF에서 볼드 텍스트 :아파치 FOP XSL/XSLT 내가이 같은 XML이
<?xml version="1.0" encoding="UTF-8"?>
<TermsAndConditions>
<clause><clausetext>Terms and Conditions of Supply - Please read carefully</clausetext></clause>
<clause><clausetext>Available only to <bold>customers who have an existing</bold> account.</clausetext></clause>
</TermsAndConditions>
와 스타일 시트는 다음과 같습니다
<fo:page-sequence master-reference="simple" >
<fo:flow flow-name="xsl-region-body">
<xsl:for-each select="data/TermsAndConditions/clause">
<fo:block font-size="10pt" font-family="Arial" color="#6d6e71"><xsl:value-of select="clausetext" />
</fo:block>
<fo:block font-size="10pt" font-family="Arial" line-height="10pt" space-after.optimum="3pt" text-align="justify"> </fo:block>
</xsl:for-each>
</fo:flow>
</fo:page-sequence>
어떻게 텍스트를 만들어 가야합니까 생성 된 PDF에서 굵게 표시된 < 굵게> </bold> 태그 사이에? 지금은 절을 볼 수 있지만 텍스트는 모두 정상입니다. 다음 스타일 시트 [http://www.w3schools.com/xsl/tryxslt.asp?xmlfile=cdcatalog&xsltfile=tryxsl_if]
:
은 또한이에, 나는 w3schools.com의 tryit 편집기를 사용하여 비슷한 일 시도<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<body>
<xsl:apply-templates mode="tttt" />
</body>
</html>
</xsl:template>
<xsl:template match="bold" mode="tttt">
<b><xsl:value-of select="." /></b>
</xsl:template>
</xsl:stylesheet>
을 원하는대로 나는 출력을 얻을.
<xsl:template match="bold" mode="tttt">
<fo:inline font-weight="bold"><xsl:value-of select="." /></fo:inline>
</xsl:template>
</xsl:stylesheet>
당신이 hrml을 생산 보여 스타일 시트를 : 아마 읽어야이 FO에 대한 –
나는 xsl fo로 일하고있다. 두 번째 스타일 시트는 첫 번째 개념 시트를 개념 증명으로 사용했습니다. – user2260040