1 /* PR middle-end/52306 */
4 const unsigned char *prefix
;
8 const unsigned char *name
;
14 const unsigned char *name
;
19 struct xsltTemplate
*xsltNewTemplate(void);
20 void xsltGetQNameURI(unsigned char**);
21 long xmlMalloc(unsigned long);
22 void xsltGenericDebug(void);
23 int xmlStrEqual(const unsigned char*, const unsigned char*);
25 static void xsltGetInheritedNsList(
26 struct xsltTemplate
*template,
36 || template->inheritedNsNr
!= 0
37 || template->inheritedNs
!= 0)
42 ret
= (struct xmlNs
**) xmlMalloc((maxns
+ 1) * sizeof(struct xmlNs
*));
43 for (i
= 0; i
< nbns
; i
++)
44 if (cur
->prefix
== ret
[i
]->prefix
45 || xmlStrEqual(cur
->prefix
, 0))
57 xsltParseStylesheetTemplate(struct xmlNode
*template)
59 struct xsltTemplate
*ret
;
62 ret
= xsltNewTemplate();
65 xsltGetInheritedNsList(ret
, template);
67 xsltGetQNameURI(&prop
);
68 xmlStrEqual(0, ret
->name
);
71 void xsltParseStylesheetTop(struct xmlNode
*cur
)
76 if (xmlStrEqual(cur
->name
, 0))
78 else if (xmlStrEqual(cur
->name
, 0))
80 else if (xmlStrEqual(cur
->name
, 0))
81 xsltParseStylesheetTemplate(cur
);