xsl-list
[Top] [All Lists]

Re: generating xml from xml

2003-11-10 09:22:11
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/_[(_at_)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(_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>