Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
Metaproxy is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
- printf ("------ attr %.*s=%.*s\n", attr_len, attr_name,
- val_len, value);
+ {
+ printf("------ attr %.*s", attr_len, attr_name);
+ if (value)
+ printf("=%.*s", val_len, value);
+ printf("\n");
+ }
event.attribute(name, len, attr_name, attr_len, value, val_len, x);
}
return i;
event.attribute(name, len, attr_name, attr_len, value, val_len, x);
}
return i;
+
+ if (!nest)
+ {
+ if (i == 6 && !yaz_strncasecmp(cp, "script", i))
+ {
+ int ws = skipSpace(cp + 6);
+ if (cp[ws + 6] == '>')
+ nest = true; /* really terminated */
+ }
+ if (!nest)
+ continue;
+ }
+ tagText(event, text_start, cp - 2);
printf("------ tag open %.*s\n", i, cp);
j = tagAttrs(event, cp, i, cp + i);
j += tagEnd(event, cp, i, cp + i + j);
printf("------ tag open %.*s\n", i, cp);
j = tagAttrs(event, cp, i, cp + i);
j += tagEnd(event, cp, i, cp + i + j);