I have to files XML files: language.xml and menu.xml. The first one is loaded by default, the second is loaded with <xsl:param />
.
language.xml:
<?xml version="1.0" encoding="utf-8"?>
<language>
<header>
<menu>
<title>Title of example</title>
</menu>
<menu>
<title>Title of example 2</title>
</menu>
<menu>
<title>Title of example 3</title>
</menu>
</header>
</language>
menu.xml
<?xml version="1.0" encoding="utf-8"?>
<header>
<menu>
<a>/example</a>
</menu>
<menu>
<a>/example2</a>
</menu>
<menu>
<a>/example3</a>
</menu>
</header>
I need to match every /language/header/menu with every /header/menu. The positions are correct, so the first /language/header/menu corresponds with /header/menu.
So the desired output will be:
<a href="/example">Title of example</a>
<a href="/example2">Title of example 2</a>
<a href="/example3">Title of example 3</a>
Thanks!