xsl-list
[Top] [All Lists]

Re: generating xml from xml

2003-11-10 09:00:32


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>


and my limitation is, the parser I can use should be MSXML3.0 or less. 

the above will work with any xslt system, which includes msxml3, clearly
msxml previous to version 3 won't work as it doesn't implement xslt at
all.

David

-- 
http://www.dcarlisle.demon.co.uk/matthew

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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



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