XSLT and Multiple XML Files

G

Greg Esres

I have two xml files, one with boilerplate and another with variable
text that needs to go into empty nodes in the boilerplate. I could
put the boilerplate into the Xsl file, but I would rather not do it
that way because

1) The boilerplate can be structured more nicely in an xml file, and
2) I'd like to have a unified structured document prior to
transforming it.

Any hints as to how to proceed?

Thanks!
 
M

Martin Honnen

Greg said:
I have two xml files, one with boilerplate and another with variable
text that needs to go into empty nodes in the boilerplate. I could
put the boilerplate into the Xsl file, but I would rather not do it
that way because

1) The boilerplate can be structured more nicely in an xml file, and
2) I'd like to have a unified structured document prior to
transforming it.

Any hints as to how to proceed?

You can read in and process the second XML document using the XSLT
function named 'document':
<http://www.w3.org/TR/xslt#document>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top