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.

Import XSLT for easy cases

Featured Replies

http://jensteich.de/fmfaq/export/xslt-for-simple-cases/

 <!--
  xslt stylesheet importing xml data into FileMaker for easy cases
  like:
 
<root>
  <record>
    <field1>....</field1>
    <field2>....</field2>
    <field3>....</field3>
    <... any number of fields ...
  </record>
  ... any number of records
 
  'root', 'record', 'fieldx' can be any names.
 

~jens

You have way too much code - most of it will be ignored during the import.

You also have a line that shouldn't be there:

FIELD EMPTYOK="YES" MAXREPEAT="1" NAME="FeldName" TYPE="TEXT"/>

 

The entire stylesheet could be shortened to just:
 

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/*">
    <FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">
        <METADATA>
            <xsl:for-each select="*[1]/*">
                <FIELD name="{name()}"/>
            </xsl:for-each>
        </METADATA>
        <RESULTSET>
            <xsl:for-each select="*">
                <ROW>
                    <xsl:for-each select="*">
                        <COL><DATA><xsl:value-of select="."/></DATA></COL>
                    </xsl:for-each>
                </ROW>
            </xsl:for-each>
        </RESULTSET>
    </FMPXMLRESULT>
</xsl:template>
 
</xsl:stylesheet>

(assuming version 11 or higher).

In fact, it could be shortened even further, but that's for another occasion.

 

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.