29
29
VARSTORE *topVarstore;
31
/* check if name is present */
32
nameAttrib = UnlinkAttributeInMarkup(htmlMarkup, "NAME");
33
if (nameAttrib != NULL && nameAttrib->value != NULL) {
36
name = nameAttrib->value;
31
nameAttrib = htmlMarkup->attrib;
32
if(nameAttrib == NULL)
34
HtpMsg(MSG_ERROR, task->infile, "USE markup without parameter");
37
if (nameAttrib->value) {
38
if (stricmp(nameAttrib->name, "NAME") == 0) {
39
HtpMsg(MSG_WARNING, task->infile,
40
"deprecated USE syntax, see manual");
41
name = nameAttrib->value;
43
HtpMsg(MSG_ERROR, task->infile, "illegal USE markup");
39
/* The only attribute is the macro name without value
40
* (which can be "name" though).
42
if (nameAttrib == NULL) {
43
nameAttrib = htmlMarkup->attrib;
44
if(nameAttrib == NULL)
46
HtpMsg(MSG_ERROR, task->infile,
47
"USE markup without parameter", htmlMarkup->tag);
50
htmlMarkup->attrib = nameAttrib->next;
52
47
name = nameAttrib->name;
49
htmlMarkup->attrib = nameAttrib->next;
56
51
/* check if the noexpand flag is present */
57
52
noexpand = UnlinkBoolAttributeInMarkup(htmlMarkup, "NOEXPAND");