ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

xsltFreeStyleDocuments: : an XSLT stylesheet (representing a stylesheet-level)

Frees the node-trees (and xsltDocument structures) of all stylesheet-modules of the stylesheet-level represented by the given .

Definition at line 210 of file documents.c.

Referenced by xsltFreeStylesheet().

                                                {
    xsltDocumentPtr doc, cur;
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
    xsltNsMapPtr nsMap;
#endif
    
    if (style == NULL)
    return;

#ifdef XSLT_REFACTORED_XSLT_NSCOMP
    if (XSLT_HAS_INTERNAL_NSMAP(style))
    nsMap = XSLT_GET_INTERNAL_NSMAP(style);
    else
    nsMap = NULL;    
#endif   

    cur = style->docList;
    while (cur != NULL) {
    doc = cur;
    cur = cur->next;
#ifdef XSLT_REFACTORED_XSLT_NSCOMP
    /*
    * Restore all changed namespace URIs of ns-decls.
    */
    if (nsMap)
        xsltRestoreDocumentNamespaces(nsMap, doc->doc);
#endif
    xsltFreeDocumentKeys(doc);
    if (!doc->main)
        xmlFreeDoc(doc->doc);
        xmlFree(doc);
    }
}

Generated on Sun May 27 2012 04:49:41 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.