February 7, 200817 yr I've been using an XML-based text export and it's been working fine. I now find that I need to insert a line of static delimiting characters following each exported record -- and the characters may occasionally need to be changed, but I can handle that by editing the stylesheet. This is the XMLstyle.xsl that I've been using (courtesy of Fenton) <?xml version="1.0" encoding="utf-8"?> xmlns:fm="http://www.filemaker.com/fmpxmlresult" exclude-result-prefixes="fm" > (the server omitted some elements of the above code) Can someone familiar with XML suggest a few lines to add? I've researched and thought these lines might work, but they didn't: ******** Any help will be greatly appreciated.
February 7, 200817 yr I don't think you should attempt to insert these characters from a FileMaker field. The xsl you posted (which looks a lot like something I'd post -) is completely generic, treating all fields the same. What you should do instead is just add the characters inside the late tags, right before the line ending characters (which are the html entity syntax for ASCII #10; difficult to post here, though it can be done if you post it once, then edit it to redo it, then post again; second time's the charm). ***********
February 7, 200817 yr Author This is the XMLstyle.xsl that I've been using (courtesy of Fenton) Yes, it was from a post you made many months ago. However, I've substituted the line you suggested for the line having only a CR (see pic) and it didn't change anything. Did I misunderstand what you're suggesting?
February 7, 200817 yr Author OK, I believe I have it. I had put the delimiting stars in the wrong statement. I've attached an image showing the correct stylesheet. BTW, for anyone interested in a clear overview of how XML stylesheets operate, I found this site: XSLT Overview I'm learning. Thanks, Fenton.
Create an account or sign in to comment