Next in thread → Next in month →

Re: [docbook-apps] Handling Similar Attribute Sets

From
Shomas Rchraitle
Date
2007-03-20T16:50:36+00:00
ID
Thread
Re: [docbook-apps] Handling Similar Attribute Sets
Hi Paul,

On Dienstag, 20. M酺z 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
Next in thread → Next in month →