The XSLT code written below which checks for sublists and converting to PDF is not working properly. We use F.O.P to export PDF.
`<xsl:template match="ol|OL"> <!-- <fo:list-block provisional-distance-between-starts="1cm" provisional-label-separation="0.5cm"> <xsl:attribute name="space-after"> <xsl:choose> <xsl:when test="ancestor::ul or ancestor::ol"> <xsl:text>0pt</xsl:text> </xsl:when> <xsl:otherwise> <xsl:text>12pt</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:attribute> <xsl:attribute name="start-indent"> <xsl:variable name="ancestors"> <xsl:choose> <xsl:when test="count(ancestor::ol) or count(ancestor::ul)"> <xsl:value-of select="1 + (count(ancestor::ol) + count(ancestor::ul)) * 1.25"/> </xsl:when> <xsl:otherwise> <xsl:text>1</xsl:text> </xsl:otherwise> </xsl:choose> </xsl:variable> <xsl:value-of select="concat($ancestors, 'cm')"/> </xsl:attribute> <xsl:apply-templates select="*"/> </fo:list-block>--> </xsl:template>` Thank you.
No comments:
Post a Comment