K1200 Posted February 7, 2008 Posted February 7, 2008 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.
Fenton Posted February 7, 2008 Posted February 7, 2008 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). ***********
K1200 Posted February 7, 2008 Author Posted February 7, 2008 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?
K1200 Posted February 7, 2008 Author Posted February 7, 2008 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.
Fenton Posted February 7, 2008 Posted February 7, 2008 Oops, good catch. I didn't put them BETWEEN the returns. Duh. I fixed my code.
Recommended Posts
This topic is 6134 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