Forum OpenACS Q&A: Broken HEAD parsing .xql Files?

Collapse
Posted by Christian Eva on
I am reinstalling from HEAD and get on bootstrapping errors parsing the .xql files: unknown command

Notice: Loading packages/acs-tcl/tcl/xml-2-procs.tcl...
[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: Loading /t/proj/bio/dtafbio/web/www/biosa47/packages/acs-tcl/tcl/00-database-procs-postgresql-postgresql.xql
[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: new massaged file content:
<?xml version="1.0"?>
<queryset>
  <rdbms><type>postgresql</type><version>7.1</version></rdbms>

  <fullquery name="db_nextval.nextval_sequence">
    <querytext>
      select nextval(:sequence) as nextval
      where (select relkind
            from pg_class
            where relname = :sequence) = &#39;S&#39;
    </querytext>
  </fullquery>

  <fullquery name="db_nextval.nextval_view">
    <querytext>
      select nextval
      from ${sequence}
    </querytext>
  </fullquery>

</queryset>

[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: whole_file=<?xml version="1.0"?>
<queryset>
  <rdbms><type>postgresql</type><version>7.1</version></rdbms>

  <fullquery name="db_nextval.nextval_sequence">
    <querytext>
      select nextval(:sequence) as nextval
      where (select relkind
            from pg_class
            where relname = :sequence) = &#39;S&#39;
    </querytext>
  </fullquery>
  <fullquery name="db_nextval.nextval_view">
    <querytext>
      select nextval
      from ${sequence}
    </querytext>
  </fullquery>

</queryset>

[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: parsed_doc=p0
[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: root_node=N1
[17/Mar/2003:17:21:12][28042.1024][-main-] Error: Error parsing queryfile /t/proj/bio/dtafbio/web/www/biosa47/packages/acs-tcl/tcl/00-database-procs-postgresql-postgresql.xql:

unknown command
[17/Mar/2003:17:21:12][28042.1024][-main-] Debug: Loading /t/proj/bio/dtafbio/web/www/biosa47/packages/acs-tcl/tcl/acs-kernel-procs.xql

Collapse
Posted by Jamie Rasmussen on
Try upgrading to the newer version of nsxml from the AOLserver page on SourceForge - it should be backwards compatible.  I think Don committed some changes in acs-tcl that require the new api.  E.g. ns_xml node getattr -> ns_xml node get attr.  I believe Mat has added the SourceForge distribution of nsxml to the current OpenACS distribution of AOLserver, though the plan is to move towards recommending AOLserver 4.0, which is currently in beta.
Collapse
Posted by Christian Eva on
Jamie,

That did the job, many thanks!

I had downloaded nsxml-1.5 some time ago but never upgraded aolserver-331ad13 as I was waiting to use AOLS 4. So after adapting the Makefile to SuSE libxml2 it compiled and HEAD installs fine now.