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 to convert rdf to fmpxmlresult

Featured Replies

I'm attempting to write a xsl style sheet to import rdf files into filemaker.

I'm trying to import from http://www.macslash.org/macslash.rdf.

my stylesheet looks like (modified version of rss2fmp):

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

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

<xsl:output method="xml" encoding="utf-8" indent="yes" />

<xsl:template match="/">

<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">

<ERRORCODE>0</ERRORCODE>

<PRODUCT BUILD="" NAME="FileMaker Pro XML Import" VERSION="6.0v1" />

<DATABASE DATEFORMAT="yyyy.MM.dd" LAYOUT="" NAME="" RECORDS="" TIMEFORMAT="k:mm:ss" />

<METADATA>

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

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

</METADATA>

<RESULTSET FOUND="10">

<xsl:for-each select="item">

<xsl:variable name="c">

<xsl:value-of select="position()" />

</xsl:variable>

<ROW MODID="$c" RECORDID="$c" >

<COL><DATA><xsl:value-of select="title" /></DATA></COL>

<COL><DATA><xsl:value-of select="link" /></DATA></COL>

</ROW>

</xsl:for-each>

</RESULTSET>

</FMPXMLRESULT>

</xsl:template>

</xsl:stylesheet>

My result looks like:

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

<FMPXMLRESULT xmlns="http://www.filemaker.com/fmpxmlresult">

<ERRORCODE>0</ERRORCODE>

<PRODUCT VERSION="6.0v1" NAME="FileMaker Pro XML Import" BUILD=""/>

<DATABASE TIMEFORMAT="k:mm:ss" RECORDS="" NAME="" LAYOUT="" DATEFORMAT="yyyy.MM.dd"/>

<METADATA>

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

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

</METADATA>

<RESULTSET FOUND="10"/>

</FMPXMLRESULT>

I seem to be lacking any story information.

I think it might be this line:

<xsl:for-each select="item">

and I've tried "/" "/item" "item/rdf" "item/rdf:RDF" and some other variations.

Most give this result but the rdf:RDF gives a namespace violation.

Does anyone know how to fix this.

Thanks

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.