December 30, 200619 yr Hi Has anyone any ideas as to the best way to include an existing XML file into a parent XML file? I'm not sure which is the best way to achieve this with FileMaker after looking at xsl:import, xsl:include, xi:include, defining an entity, etc!! What I'm trying to achieve is to run one script in FileMaker that generates an XML file (parent.xml) that inserts the content of existing xml file/s (child.xml) into the final document. The structure needs to be something along the lines of... One Two Three *Child data elements need to be inserted from existing file child.xml* One Two Three I've got FileMaker and xsl producing the required xml files OK. The parent xsl uses FMDSORESULT and begins with the following: <?xml version='1.0' encoding='UTF-8' ?> xmlns:xsl='http://www.w3.org/1999/XSL/Transform' xmlns:fm="http://www.filemaker.com/fmpdsoresult" exclude-result-prefixes="fm"> indent='yes' method='xml' /> The template then sucessfully exports the various FileMaker fields as XML. Any ideas and help very much appreciated. Thanks in advance. Andy
December 30, 200619 yr The standard method is to use the document() function to read the external file. E.g. the most concise variant would be:
December 30, 200619 yr Author Mikhail, thanks for your reply, the document function does exacly what I'm after I wasn't exactly sure which function was the best to use!
Create an account or sign in to comment