xsl-list
[Top] [All Lists]

RE: xsl:attribute in XSLT 2.0

2003-10-24 08:38:03
Now I have to correct myself again --

At 11:06 AM 10/24/2003, you wrote:
<xsl:element name="{concat(application,'.',entity)}">
        <xsl:attribute name="id">
                <xsl:value-of select="id"/>
        </xsl:attribute>
</xsl:element>

This particular case could be handled as

<xsl:copy-of select="@id"/>

If Sergiu meant what he typed, not what I read, I'm wrong. His code moves a child element's value into an attribute; mine merely copies an attribute.

What I proposed does handle a common case, but I shouldn't assume it's Sergiu's.

Cheers,
Wendell


======================================================================
Wendell Piez                            
mailto:wapiez(_at_)mulberrytech(_dot_)com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>