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>
</xsl:text>
<xsl:text disable-output-escaping="yes"><!--</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">--></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>
</xsl:text>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>