}
"<SORT"(" "|\n)+"value=\""{value} {
- if ((position == INTYPE) | (position == MAINHYP))
+ if (((position == INTYPE) | (position == MAINHYP)) &&
+ (first_child == HERE))
{
tmp=(char *)malloc((sizeof('a')*200));
strcpy(tmp,yytext);
FILE *outrel, *outsort;
init_symbol_table();
- if (!(outrel = fopen("forward_rel.rdf","a")))
+ if (!(outrel = fopen("forward_rel.xml","a")))
{
- fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+ fprintf(stderr, "error in openinf file forward_rel.xml\n");
exit(-1);
}
- if (!(outsort = fopen("forward_sort.rdf","a")))
+ if (!(outsort = fopen("forward_sort.xml","a")))
{
- fprintf(stderr, "error in openinf file forward_rel.rdf\n");
+ fprintf(stderr, "error in openinf file forward_rel.xml\n");
exit(-1);
}
// We process the body