xsl-list
[Top] [All Lists]

Re: Conditionally use attribute sets?

2005-11-14 10:17:49


It can be done. 

what can be done?

Consider the following stylesheet

But that stylesheet doesn't use attribute sets at all.
It writes out a result that happens to have an atribute called
xsl:use-attribute-sets but the attribute sets defined in the stylesheet
e are not used, are they?

 (which you can test by  applying it to itself):

but you get the same result if you remove

  <xsl:attribute-set name="Oscar">
    <xsl:attribute name="slob">yes</xsl:attribute>
  </xsl:attribute-set>

  <xsl:attribute-set name="Felix">
    <xsl:attribute name="slob">no</xsl:attribute>
  </xsl:attribute-set>

from the stylesheet.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--