这是我为不同的嵌套列表选择项目符号类型的代码,但只有光盘显示在 PDF 中。我怎样才能显示一个空心圆圈和实心方形符号?
<xsl:choose>
<xsl:when test="parent::ul[ancestor::ul[ancestor::ul]]"><!--double nested bullet-->
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
<fo:character character="■"/><!--solid square-->
</xsl:when>
<xsl:when test="parent::ul[ancestor::ul]"><!--single nested bullet-->
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
<fo:character character="∘"/><!--hollow circle-->
</xsl:when>
<xsl:otherwise><!--bullet-->
<xsl:attribute name="font-family">Times New Roman</xsl:attribute>
<fo:character character="•"/><!--disc-->
</xsl:otherwise>
</xsl:choose>