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.

Featured Replies

  • Newbies

Dear all, I've just create a script to export my records in multiple xml file (one xml for each record) applying also an XSL stylesheet.

So, if I use the style.xsl taking from my computer ("source" button when filemaker ask me to select the file) it works. If I put the same file online, it doesn't work giving me a SAXParseException error: internal error in NetAccess (occurred in an unknown entity, at line 0, column 0).

In the same folder where I have the style.xsl there are other xsl files that works, but they are used to "import" process (from XML to FILEMAKER, while in this case I'm working to an export process, from FILEMAKER to XML, I don't know if this could be the problem)

Someone could help me to understand the error? Thank you

<xsl:stylesheet 
  version="1.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:fmp="http://www.filemaker.com/fmpxmlresult"
  exclude-result-prefixes="fmp"
>
<xsl:output omit-xml-declaration="yes" indent="yes"/>
     <xsl:strip-space elements="*"/>
      <xsl:template match="fmp:FMPXMLRESULT">

                <xsl:for-each select="fmp:RESULTSET/fmp:ROW">
<xsl:text>&#xA;</xsl:text>
<xsl:text disable-output-escaping="yes">&lt;!--</xsl:text> <xsl:value-of select="fmp:COL[1]/fmp:DATA"/>.<xsl:value-of select="fmp:COL[2]/fmp:DATA"/>.<xsl:value-of select="fmp:COL[3]/fmp:DATA"/><xsl:text disable-output-escaping="yes">--&gt;</xsl:text>

                     <problem display_name="Checkboxes" >
                         <choiceresponse>
                          <label><xsl:value-of select="fmp:COL[4]/fmp:DATA"/></label>
                           <checkboxgroup>
                               
                               <choice correct="{fmp:COL[6]/fmp:DATA}">
                               <xsl:value-of select="fmp:COL[5]/fmp:DATA"/>
                               <choicehint selected="true"><xsl:value-of select="fmp:COL[7]/fmp:DATA"/> </choicehint>                             
                               </choice>
								
								<choice correct="{fmp:COL[9]/fmp:DATA}">
								<xsl:value-of select="fmp:COL[8]/fmp:DATA"/>                             
								 <choicehint selected="true"><xsl:value-of select="fmp:COL[10]/fmp:DATA"/></choicehint>               
</choice>
                               <choice correct="{fmp:COL[12]/fmp:DATA}">
                               <xsl:value-of select="fmp:COL[11]/fmp:DATA"/>                               
                               <choicehint selected="true"><xsl:value-of select="fmp:COL[13]/fmp:DATA"/></choicehint>               
</choice>
                           </checkboxgroup>
                           </choiceresponse>
                     </problem>
<xsl:text>&#xA;</xsl:text>

                </xsl:for-each>


      </xsl:template>
</xsl:stylesheet>

 

Edited by DarioDN

9 minutes ago, DarioDN said:

I've just create a script to export my records in multiple xml file (one xml for each record) applying also an XSL stylesheet.

Where do you split the export into separate files? And why do you use for-each?

The error you are asking about is sometimes due to async sources and FileMaker being sync.

 

It's hard to help you without any hands-on.

Edited by ggt667

  • Author
  • Newbies

I'm triyng to export on a local folder. The "local" saving is ok.

Why doesn't it work if I use the xsl file online? Is really strange :(

  • Author
  • Newbies

I'm trying to search a workaround.

The first: is there a way to define the xsl path in a script? Using "export record" I can define the XML path (destination) but not the XSL path, asked me by dialog window.

So, how can I disable the Dialog and store the xsl path w/o it asks me every time?

tnx

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.