Re: [xsl] generating xml from xml

Subject: Re: [xsl] generating xml from xml
From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx>
Date: Mon, 10 Nov 2003 11:22:11 -0500
At 11:00 AM 11/10/2003, David wrote:
I think you just want the indentity transformation (copied from the xslt
spec)
 with one extra template

<xsl:template match="Trade/*">
 <xsl:element name="{/Data/Fields/_[@id=name(current())]/@fn}">
  <xsl:apply-templates/>
 </xsl:element>
</xsl:template>

This is the XPath location path solution (and David remembered the AVT delimiters { and }, which I forgot).


Cheers,
Wendell


====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx 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



Current Thread