> Joel Gwynn wrote: > > something very simple. I've got CGI::XMLApplication working with apache on > Windows '98, for testing purposes.
Your bravery is praiseworthy. > Now I'm trying to get it to do some real work. I'm connecting to > filemaker's dso_xml, which is outputting xml that looks something like this: > > <?xml version="1.0" encoding="UTF-8" ?> > <FMPDSORESULT xmlns="http://www.filemaker.com/fmpdsoresult"> > <ERRORCODE>0</ERRORCODE> > <DATABASE>my database name</DATABASE> > <LAYOUT>tracking screen</LAYOUT> > <ROW MODID="223" RECORDID="1"> > <active_oar_complete_flag>ACTIVE</active_oar_complete_flag> > <note_flag /> > <DMAIL_NUMBER>309</DMAIL_NUMBER> > <orig_hit_date /> > > ... > > and I've created an xsl stylesheet, as per the instructions at: > http://www.filemaker.com/downloads/pdf/xml_overview.pdf (page 14). It > looks like this: > > <?xml version="1.0"?> > <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:fm="http://www.filemaker.com/fmpdsoresult"> > > <xsl:template match="fm:FMPDSORESULT"> > > <html> > <body> > <font face="Arial, Helvetica"> > My database: <xsl:value-of select="fm:DATABASE"/> > </font> > </body> > </html> > > </xsl:template> > > </xsl:stylesheet> > > Whenever I load my cgi app, perl crashes with 'This program has performed an > illegal operation and will be shut down.' The details of the problem are > this: 'PERL caused an invalid page fault in module KERNEL32.DLL at > 017f:bff7b9a6.' > > Should it be doing this? At the very least, I should get some kind of > constructive error, no? I know I'm getting the xml; I can dump the output > to the browser as xml. I know jack about apache on win32, BUT apache on Unix builds with it's own expat library (for web_DAV). Did you build your apache or get a binary? If your apache has it's own Expat Inside (tm), all your XML::Parser base belong to it, er, all XML::Parser based scripts are going to vomit. You have a conflict of expats. Rumor has it that the Apache folks are taking the expat out of the default build. If you have a cygwin setup, Apache ought to compile (again, I'm working in the dark here). If so, grab fresh apache source, unpack it then look in that directory's src/ directory. There's a file called "Configuration". Grep through for "EXPAT=default" and change it to "EXPAT=no". configure && make as needed. Again, you are a brave, brave man. Working in win32 is a lot like chasing the Mothman: only result can be madness and despair :-) -- ---------------- Joe Johnston - http://taskboy.com "A closed mouth gathers no feet."
