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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]