October 6, 201114 yr I have an XSLT which I use to import some XML data in SOAP format. Works great in FileMaker 11, but when trying it in FileMaker 9v3 I get the following error: XML Parsing error: Attribute 'xmlns:soap' is not declared for element 'FMPXMLRESULT' In the XSLT which works in FM11, I do have an xmlns definition: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > However, I need this, because if I remove it, then I get a different error: "Unable to resolve prefix 'soap'" which happens when I count the records as I'm using the soap namespace... <DATABASE DATEFORMAT="M/d/yyyy" LAYOUT="" NAME="" RECORDS="{count(soap:Envelope/soap:Body/People/*)}" TIMEFORMAT="h:mm:ss a"/> Solved: turns out that FM9 doesn't like the xmlns which are naturally appended to the FMPXMLRESULT. FM11 seems to not care. Solution: add exclude-result-prefixes="soap" to your <xsl:stylesheet node. if you need to exclude more, just put a list in like this: exclude-result-prefixes="a b c" So the final XSLT looks like this: <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" exclude-result-prefixes="soap" >
November 9, 201114 yr Yes, when you declare an xmlns for import into FM, you have to exclude it from the result (of the transformation). Filemaker only wants its own xmlns, naturally!!
Create an account or sign in to comment