RE: [xsl] xsl:attribute in XSLT 2.0

Subject: RE: [xsl] xsl:attribute in XSLT 2.0
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Fri, 24 Oct 2003 11:38:03 -0400
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"/>

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.


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. 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:

Current Thread