Changed to detect recursion in xslt:include (bug #127687).
[platform/upstream/libxslt.git] / libxslt / xsltInternals.h
index 5cf478b..ba31b8b 100644 (file)
@@ -141,6 +141,7 @@ struct _xsltDocument {
     int main;                  /* is this the main document */
     xmlDocPtr doc;             /* the parsed document */
     void *keys;                        /* key tables storage */
+    struct _xsltDocument *includes; /* subsidiary includes */
 };
 
 typedef struct _xsltTransformContext xsltTransformContext;
@@ -414,6 +415,11 @@ struct _xsltStylesheet {
      */
     xmlHashTablePtr extInfos;  /* the extension data */
     int                    extrasNr;   /* the number of extras required */
+
+    /*
+     * For keeping track of nested includes
+     */
+    xsltDocumentPtr includes;  /* points to last nested include */
 };
 
 /*