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: Handling Similar Attribute Sets

In our customization layer, we have multiple attribute sets which are 
identical; for example, glossary titles, appendix titles and chapter titles 
are the same.

To make these easier to handle, I tried setting a common attribute set - for 
example, heading1.style - and assigning it to multiple sets as follows:

  <xsl:attribute-set name="heading1.style">
    <xsl:attribute name="line-height">1.15</xsl:attribute>
    <xsl:attribute name="space-before.optimum">12pt</xsl:attribute>
    <xsl:attribute name="space-before.minimum">10pt</xsl:attribute>
    <xsl:attribute name="space-before.maximum">12pt</xsl:attribute>
    <xsl:attribute name="space-after.optimum">12pt</xsl:attribute>
    <xsl:attribute name="space-after.minimum">10pt</xsl:attribute>
    <xsl:attribute name="space-after.maximum">12pt</xsl:attribute>
    <xsl:attribute name="hyphenate">false</xsl:attribute>
    <xsl:attribute name="font-size">22pt</xsl:attribute>
    <xsl:attribute name="font-weight">bold</xsl:attribute>
    <xsl:attribute name="color">#98968A</xsl:attribute>
    <xsl:attribute name="font-family">Arial</xsl:attribute>
    <xsl:attribute name="text-align">left</xsl:attribute>

  <xsl:attribute-set name="glossary.titlepage.recto.style">

  <xsl:attribute-set name="appendix.titlepage.recto.style">

However, I get an error in Saxon - "Error reported by XML parser: need 
whitespace between attributes".

Am I misunderstanding how xsl:use_attribute-sets can be used and, if so, 
does any recommend how I should implement my requirement?




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