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: Re: [docbook-apps] Handling Similar Attribute Sets


Hi Paul,

On Dienstag, 20. März 2007, Paul Moloney wrote:
> [...]
>
> 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-set>
>
>   <xsl:attribute-set name="glossary.titlepage.recto.style">
>     <xsl:use-attribute-sets="heading1.style"/>
>   </xsl:attribute-set>
>
>   <xsl:attribute-set name="appendix.titlepage.recto.style">
>     <xsl:use-attribute-sets="heading1.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?

xsl:use-attribute-sets is an attribute, not an element. You should rewrite 
your code:

<xsl:attribute-set 
     name="glossary.titlepage.recto.style"
     xsl:use-attribute-sets="heading1.style">
  <!-- ... Insert more xsl:attribute, if needed -->
</xsl:attribute-set>


Bye,
Tom

-- 
Thomas Schraitle


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