Jump to content

Need help in transforming 2 xml files with single xsl file


Recommended Posts



Thanks for looking at this.


I am new to XSLT, browsed in google, nothing is appropriate to my requirement.


I have 2 xml files like below
















My xsl file looks like below
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.bluwo.com/xml/Interface" xmlns:tns="http://www.bluwo.com/xml/Interface">
<xsl:output method="xml" indent="yes" />
<xsl:template match="/">
<<xsl:for-each select="parameters/param">
<xsl:value-of select="Name"/>
<xsl:value-of select="Number"/>


my xls file is working fine for any of the files, but I wanted to read from both of my xml files.

I heard about document(), but not clear how to modify my present xls file for this.



I don't have any problem to read from a combined file "both my 1.xml 2.xml in separatefile like both.xml"

<file filename="~/1.xml"/>
<file filename="~/2.xml"/>



Appreciate the help here.





Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...