![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - How to use XSLT to transform XML according to the data in another XML [Thread Next] Re: How to use XSLT to transform XML according to the data in another XMLTo: NULL Date: 2/2/2005 5:07:00 PM Tempore 17:58:33, die Wednesday 02 February 2005 AD, hinc in foro {comp.text.xml} scripsit <ai2003lian@y...>:
> 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:xsl="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-view.cgi?userid=38041)
Vincit omnia simplicitas
Keep it simple
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
