OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Disabling hyphenation on selected string

I've tried to disable hyphenation on a selected string inside a 
paragraph where hyphenation is enabled.
This is my document.xml sample:

    This sentence can be hyphenated anywhere.
    <phrase role="nohyph">On the opposite this sentence shouldn't be 
    This sentence can be hyphenated anywhere again.

Moreover in my stylesheet for PDF output (mystyle.xsl) I've defined the 
following attribute-set and template

    <xsl:attribute-set name="nohyph.prop">
        <xsl:attribute name="hyphenate">false</xsl:attribute>

    <xsl:template match="phrase[@role='nohyph']">
        <fo:inline xsl:use-attribute-sets="nohyph.prop">

However this trick doesn't works because I see that the sentence in 
phrase "nohyph" is hyphenated.

Has anyone any suggestions about this issue?

Thanks and bye,

Demis Biscaro

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]