Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 6798 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I am using Martin’s example that shows how XSLT can retrieve data from a password protected Filemaker database.

It works great and returns the XML data into a variable called xmltree.

My question is – how the heck can I transform this information into something that is formatted for display?

I have tried using the xsl:value-of select="fmrs:field[@name...", etc. But, the HTML returned contains no field data (though I can see it unstructured if I use “copy-of select=$xmltree”)

Even after many hours, I am still not able to crack this. Can anyone help?

Thanks,

George

Posted

Use

e.g. for the first record in $xmltree

Or if you need do loop through the records:

Or if you need to check if something went wrong when you called the data with document():o

Something went wrong! Error .

Do something else ...

  • Newbies
Posted

Thanks so much, Martin.

The only thing I was missing was the [1] after fmrs:record. What does the [1] signify?

Thanks again for your help.

=George

Posted

The numbers in brackets specify the position. So record[1] would be the 1st record. BTW, XML is not zero-indexed like JavaScript (thankfully).

This topic is 6798 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

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