I'm trying to process to xml files (docbook documents). There are repeating structures in the document that I would extract from both documents, parameterize, and store in a separate document.
To get it simplified, here is an example:
file1.xml:
<?xml version="1.0" encoding="UTF-8"?>
<input>
<structure>foo</structure>
<structure>bar</structure>
<structure>baz</structure>
</input>
file2.xml:
<?xml version="1.0" encoding="UTF-8"?>
<input>
<structure>abc</structure>
<structure>xyz</structure>
<structure>123</structure>
</input>
And this is the preferred output, I would like to generate.
output.xml:
<?xml version="1.0" encoding="UTF-8"?>
<output>
<structure origin="doc1">foo</structure>
<structure origin="doc1">bar</structure>
<structure origin="doc1">baz</structure>
<structure origin="doc2">abc</structure>
<structure origin="doc2">xyz</structure>
<structure origin="doc2">123</structure>
</output>
Now I don't know how to convert two or more documents (URI can be hard coded) and one additional parameter (doc1, doc2 - these can also be hard coded) in XSLT.
I would be very grateful for any hints.