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="."/>
            </xsl:attribute>
         </xsl:for-each>

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="." />
         </xsl:for-each>

The same applies to xsl:element...

Regards,

Agnes Clarke
www.agslin.net


-- 
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 7 December 2009 10:59:53 GMT