Tempore 17:58:33, die Wednesday 02 February 2005 AD, hinc in foro {comp.text.xml} scripsit <>:
> I have a XML containing more information than required. And I want to
> transform it to a XML with less information according to the
> requirement data in another XML. How could I accomplish this using
> XSLT?
Hi,
Here's one approach:
<xsl:stylesheet xmlns

sl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="AllFields">
<xsl:copy>
<xsl:copy-of select="field[@name=document('requirement.xml')/*/field]"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
regards,
--
Joris Gillis (
http://www.ticalc.org/cgi-bin/acct-v...i?userid=38041)
Vincit omnia simplicitas
Keep it simple