Jump to content
Server Maintenance This Week. ×

FMP6 has crashed when xml imports from httprequest


nbbb

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

Recommended Posts

  • Newbies

I use FMP6v4 on MacOS10.3.4

I imported xml from http request but FMP has surely crashed and quit by the second import.

The 1st import is successful after starting FMP,But if it becomes the 2nd time, FMP will crash.

The same thing occurs also in FMP7 trial version. But this problem was not generated in OS9.

Is this problem nonavoidable?

I am sorry that it is poor English.

xml URL

http://xml.amazon.com/onca/xml3?t=webser...arch=0804738696

xslt

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

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="xsi">

<xsl:template match="/">

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

<ERRORCODE>0</ERRORCODE>

<PRODUCT BUILD="" NAME="" VERSION=""/>

<DATABASE DATEFORMAT="yyyy.M.d" LAYOUT="" NAME="" RECORDS="{count(/*/*)}" TIMEFORMAT="h:mm:ss a"/>

<METADATA>

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

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

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

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

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

</METADATA>

<RESULTSET>

<xsl:attribute name="FOUND">1</xsl:attribute>

<xsl:for-each select="/ProductInfo/Details">

<ROW>

<xsl:attribute name="MODID">0</xsl:attribute>

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

<COL>

<DATA>

<xsl:value-of select="ProductName"/>

</DATA>

</COL>

<COL>

<DATA>

<xsl:for-each select="Authors/Author">

<xsl:value-of select="."/>

<xsl:if test="position() != last()">

<xsl:text>, </xsl:text>

</xsl:if>

</xsl:for-each>

</DATA>

</COL>

<COL>

<DATA>

<xsl:value-of select="Manufacturer"/>

</DATA>

</COL>

<COL>

<DATA>

<xsl:value-of select="ReleaseDate"/>

</DATA>

</COL>

<COL>

<DATA>

<xsl:value-of select="Asin"/>

</DATA>

</COL>

</ROW>

</xsl:for-each>

</RESULTSET>

</FMPXMLRESULT>

</xsl:template>

</xsl:stylesheet>

[color:"blue"]

Link to comment
Share on other sites

  • 6 months later...

This topic is 7020 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.