Home > OS >  Dotted underline in XSL-FO
Dotted underline in XSL-FO

Time:06-17

I would like to have dotted underline words using XSL-FO.

I am able to underline the words using a template but not make the line dotted.

Here is the template that I am using:

<xsl:template match="db:link">
    <fo:inline font-family="AvenirNextLTPro-It" text-decoration="underline">
        <fo:basic-link internal-destination="{@idref}"> 
            <xsl:apply-templates/>
        </fo:basic-link>
    </fo:inline>            
</xsl:template>

And this is how I apply it on my words:

<link idref="policy">Policy</link>

Is there a parameter to make dotted underlines in XSL-FO?

CodePudding user response:

The values supported for enter image description here

Tested with FOP, RenderX and AHF without any extensions.

  • Related