David Carlisle wrote:
I think after using xslt most days since the earliest drafts
of xslt 1 I've used most parts of the language multiple times,
but I've never used attribute sets, which have always seems
rather useless to me.
I like the idea, when I have a small set of attributes, used in a lot
of places. And easily configurable in a XSLT configuration document.
Indeed, using templates instead of attribute sets in such a
configuration file is not so far away.
Instead of an attribute set you can use a named template that
consists of a sequence of xsl:attribute statements. It is far
more flexible.
Yes, you're right. Actually, the only point I see in favour of the
attribute sets is that we know we can use attributes (but only
attributes) within them. Within a template, we have to check it's
designed for (i.e. called just after opening an element).
Thanks,
--drkm
___________________________________________________________________________
Appel audio GRATUIT partout dans le monde avec le nouveau Yahoo! Messenger
Téléchargez cette version sur http://fr.messenger.yahoo.com
--~------------------------------------------------------------------
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>
--~--