1. To retrieve an attribute, use the @ sign - see the example in your other thread, where the first field gets the Reference attribute of the <Notice> element.
2. It depends, but normally you would import multiple elements into a related table (Companies, in your current example), using another stylesheet that creates a new record for each company.
Thanks very much for you contributions - I'll see if I can put them to good use.
One the multiple elements issue. I don't think I explained myself too well. The XML file I'm working with is a collection of Adverts for a particular newspaper. Most adverts will have for instance a heading (something like [Title] and [/Title]), then there will be any number of paragraphs of text (using tags as so: [Para][Text]This is the text for the first paragraph.[/Text][/Para] [Para][Text]This is the text for the second paragraph.[/Text][/Para] ). On import into Filemaker I'd either like to read all the 'paragraph' text into one field, or have multiple fields set up in the one record to except text (One record to be one advert).
Thanks for any assistance on this - gratefully appreciated.
It would be difficult to import them into separate fields, because you don't know how many paragraphs there will be. And it wouldn't be a good structure to have - regardless of the import issues.
To import all paragraphs into a single field, replace:
<xsl:value-of select="' '"/>
This could be improved by inserting the carriage return (' ') conditionally after all paragraphs except the last one, but I did this in a hurry, so…