3 Square Posted December 30, 2006 Posted December 30, 2006 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
Mikhail Edoshin Posted December 30, 2006 Posted December 30, 2006 The standard method is to use the document() function to read the external file. E.g. the most concise variant would be:
3 Square Posted December 30, 2006 Author Posted December 30, 2006 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!
Recommended Posts
This topic is 6536 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now