In message <[log in to unmask]>, Iain Campbell
<[log in to unmask]> writes
>I have an xml file (index.xml) describing a framework for a document. I
>would like to import data from other xml files into index.xml for the
>purpose of page headers and footers (as an example).
>I am slightly confused as to whether this is something that is carried out
>within the related XSL file, or whether there is a way to import data
>directly into the XML file. I am publishing the XML file on Cocoon, if this
>in any way affects the process.
>I have investigated xpath, xinclude and importing data into an XSL file, but
>am unable to get any of these solutions to work. Is it purely an indication
>of lack of support for these features? Or am I barking up the wrong tree
'fraid so! You need to use XSLT's document() function. This imports a
named document into XSLT's working space, and allows you to get at its
SGML/XML and Museum Information Consultancy
[log in to unmask]