[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] formatting for paragraphs with xsl stylesheets
Hi Paul,
I think the normal.para.spacing attribute-set was
originally for para, but has since been used for other purposes to give uniform
spacing for several similar elements. There should be a dedicated attribute-set
for para which has a use-attribute-sets="normal.para.spacing" attribute so it
can use those properties but provide an opportunity for further customization
for just para.
Looking at some of my previous
cusotmization, I have used the normal.para.properties attribute set
and add an xsl:choose to test for the para context, something like
this:
<xsl:attribute-set
name="normal.para.properties">
<xsl:attribute
name="text-indent">
<xsl:choose>
<xsl:when
test="self::d:para">
para
value
</xsl:when>
</xsl:otherwise>
non-para
value
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:attribute-set>
Since attribute-sets of the same name are merged,
you will still get the spacing and add this property.
|
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]