Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Need help with XMLstyle

Featured Replies

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.

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 :B-) 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).



***********
 

  • 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?

XMLstyle.PNG

  • 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.

CorrectStyle.PNG

Oops, good catch. I didn't put them BETWEEN the returns. Duh. I fixed my code.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.