October 1, 201015 yr Hi, I'm wondering if I can change the grammar of Filemaker's XML output to something other than the options available. By either changing a standard DTD or maybe creating a third. I should rework the whole system as it is barely functional, but I'm currently in a situation where I won't possibly have the time to start on something like this.
October 1, 201015 yr You can transform the output to practically anything you like, by using a XSLT stylesheet during the export. There are some examples of that included with the application, and many more in these forums. Not sure what you mean by "barely functional". Edited October 1, 201015 yr by Guest
October 2, 201015 yr Author Sorry about being too vague, I was pressed for time. I'll elaborate a bit more. This was my first xml/xsl project so there might be a very small error somewhere. I'm exporting a FMPDSORESULT grammar XML file and using XSL to transform it. The issue I have is that the XSL displays no xml data if I don't manually delete some starting nodes from the generated xml file: 0ODE> When these are gone it's all fine. So I'm guessing this is a newbie mistake somewhere ...
October 2, 201015 yr I'm guessing this is a newbie mistake somewhere Very likely. I could tell for sure if you had posted your stylesheet. My guess is that you haven't declared (and used) the FMPDSORESULT namespace. As you can see, the root element of the XML source is qualified as . This is inherited by all the child elements - so your stylesheet must include a declaration such as: xmlns:fmp="http://www.filemaker.com/fmpdsoresult" You then use the declared prefix ("fmp" in my example) to refer to the source elements, e.g. instead of "ROW" you'd use "fmp:ROW".
October 2, 201015 yr Author Yup, that seems like the solution. I'll report back once I finished implementing the changes :
Create an account or sign in to comment