W3C home > Mailing lists > Public > xsl-editors@w3.org > January to March 2003

select attribute for xsl:attribute?

From: Clarke, Agnes <Agnes_Clarke@nl.compuware.com>
Date: Thu, 2 Jan 2003 13:16:18 +0100
Message-ID: <D913221A882FD31198D90008C75D69090667FD43@cwnl-ams-pri01.nl.compuware.com>
To: xsl-editors@w3.org

Dear editors,

I find it (very slightly) frustrating that the xsl:attribute element does
not have a select attribute.

For example, I must type:

         <xsl:for-each select="$atts/*">
            <xsl:attribute name="name()">
               <xsl:value-of select="."/>

If $x = <att1>1</att1><att2>2</att2><att3>boo</att3>
Then we get: <... att1="1" att2="2" att3="boo" ...>
(This is a bit more dynamic then using xsl:attribute-set)

In an ideal world I could type:

         <xsl:for-each select="$atts/*">
            <xsl:attribute name="name()" select="." />

The same applies to xsl:element...


Agnes Clarke

The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
Received on Thursday, 2 January 2003 10:53:24 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:22 UTC