Newbies Gprev Posted April 12, 2006 Newbies Posted April 12, 2006 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
Martin Brändle Posted April 12, 2006 Posted April 12, 2006 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() Something went wrong! Error . Do something else ...
Newbies Gprev Posted April 13, 2006 Author Newbies Posted April 13, 2006 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
Fenton Posted April 13, 2006 Posted April 13, 2006 The numbers in brackets specify the position. So record[1] would be the 1st record. BTW, XML is not zero-indexed like JavaScript (thankfully).
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now