February 28, 200916 yr Hello, I'm taking baby steps learning to import a xml data file and a xslt style sheet. I've followed the examples provided with FileMaker and read http://www.goya.com.au/node/105, I am getting close, but I have yet to see data in FileMaker... I don't get error messages, the import recognises the stylesheet, I can match the fields, the correct number of records gets created but they are empty... I am hoping it is something obvious (or an error a newbie would likely make) Any pointers?
February 28, 200916 yr I don't think it's possible to make a useful suggestion without seeing your source data and your stylesheet.
February 28, 200916 yr Author Here: I had to modify the files to remove data I did not want to "share"... hopefully once I can get some data imported I will be able apply to the more complex structure... Thanks! test_data.zip test_Converted.zip Edited February 28, 200916 yr by Guest
February 28, 200916 yr Very simple mistake. You are wanting to target "elements", ie., , but you were using the '@' syntax, which is used to target an "attribute". Just remove the @ symbols and it will work. Also, the count is: "{count (/main/org/people/person)}" That doesn't matter however, as FileMaker ignores that info when it Imports (thankfully). P.S. If you did want to target an attribute, such as: type="integer", then @type is correct. But there are no useful attributes in your xml.
March 1, 200916 yr Author Thanks Fenton, I am sure I will encounter more hurdles but I appreciate your help in getting me started!
Create an account or sign in to comment