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.

XSL import newbie lost

Featured Replies

Hello - Okay, I am lost. I have rummaged through some examples here, but I can't seem to get my XML database to import records into FM9. I got one example to get me though without errors, but no records import. Here is a truncated version of my xml file:

<?xml version="1.0" encoding="ISO-8859-1"?>

2/26/2008

My [email protected]

"xml.asp?uid=0000&order=appliedto&direction=up"

asc

desc

creditcard

issuer

1144

Card Name

bank

and the xsl file:

<?xml version="1.0" encoding="utf-8"?>

0

Thanks in advance - Don

Close, but no cigar :-] XSL is generally custom-built for the XML it is transforming. The (or a template-match) must match what you want for a FileMaker row. Yours is still matching what it did from the other solution you copied it from, so it's not going to match anything in your xml. It should be:




Also, "@" syntax is for matching "attributes," not "elements". The data you're targeting is in elements, so you don't need the "@". Example:





Also, I moved the cid to the top of the fields, in the METADATA and RESULTSET sections, just because that's where it is in the xml. It doesn't really matter (I'm neurotic I suppose :)-), but adjust your FileMaker Import order to match the fields.

creditcard.xsl.zip

  • Author

This is really fantastic - thank you - I was able to get the whole thing in to FileMaker and make my changes. Now, I want to export that back out to xml so that I can use it in a site I have using Dreamweaver.

If I use FMPDSOEXPORT with no style sheet - I can read it in DW, but I understand that FMPXMLEXPORT is preferred? But, when I use this, DW sees the XML page as empty - the DATA node set (is that the right term?) is blank. Do I need a style sheet to go back to XML?

Bah! Sorry for being so completely clueless. I have hunted around again to teach myself this, but my eyes glaze over. Any help would be GREALY appreciated.

-- Don

Yeah, you need a whole different xsl stylesheet to take the FileMaker export syntax, and turn it back into what you started with. I also used dso export in this xsl. I took out the indent="yes", because it added whitespace to the result. But perhaps that doesn't matter. I generally indent xml, just 'cause it's easier to read and troubleshoot, but it doesn't matter to the processor at the other end.

[P.S. I don't know if you need all the stuff at the top, nor where it would come from if you did. So I just whacked it in there, not using any fancy creation tags. Primitive perhaps, but it seems to work.]

CC_out_dso.xsl.zip

Edited by Guest

  • Author

Amazing - worked perfectly!

Thanks again,

Don

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.