Subject: Re: [xsl] Conditionally use attribute sets? From: drkm <darkman_spam@xxxxxxxx> Date: Mon, 14 Nov 2005 12:04:18 +0100 (CET) |
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 Tilichargez cette version sur http://fr.messenger.yahoo.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Conditionally use attribu, David Carlisle | Thread | Re: [xsl] Conditionally use attribu, JBryant |
Re: [xsl] Converting Flat XML to Hi, Arulraj | Date | Re: [xsl] Converting Flat XML to Hi, Arulraj |
Month |