You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

68 lines
1.6 KiB

4 years ago
  1. /*
  2. * Summary: interface for the XSLT namespace handling
  3. * Description: set of function easing the processing and generation
  4. * of namespace nodes in XSLT.
  5. *
  6. * Copy: See Copyright for the status of this software.
  7. *
  8. * Author: Daniel Veillard
  9. */
  10. #ifndef __XML_XSLT_NAMESPACES_H__
  11. #define __XML_XSLT_NAMESPACES_H__
  12. #include <libxml/tree.h>
  13. #include "xsltexports.h"
  14. #ifdef __cplusplus
  15. extern "C" {
  16. #endif
  17. /*
  18. * Used within nsAliases hashtable when the default namespace is required
  19. * but it's not been explicitly defined
  20. */
  21. /**
  22. * UNDEFINED_DEFAULT_NS:
  23. *
  24. * Special value for undefined namespace, internal
  25. */
  26. #define UNDEFINED_DEFAULT_NS (const xmlChar *) -1L
  27. XSLTPUBFUN void XSLTCALL
  28. xsltNamespaceAlias (xsltStylesheetPtr style,
  29. xmlNodePtr node);
  30. XSLTPUBFUN xmlNsPtr XSLTCALL
  31. xsltGetNamespace (xsltTransformContextPtr ctxt,
  32. xmlNodePtr cur,
  33. xmlNsPtr ns,
  34. xmlNodePtr out);
  35. XSLTPUBFUN xmlNsPtr XSLTCALL
  36. xsltGetPlainNamespace (xsltTransformContextPtr ctxt,
  37. xmlNodePtr cur,
  38. xmlNsPtr ns,
  39. xmlNodePtr out);
  40. XSLTPUBFUN xmlNsPtr XSLTCALL
  41. xsltGetSpecialNamespace (xsltTransformContextPtr ctxt,
  42. xmlNodePtr cur,
  43. const xmlChar *URI,
  44. const xmlChar *prefix,
  45. xmlNodePtr out);
  46. XSLTPUBFUN xmlNsPtr XSLTCALL
  47. xsltCopyNamespace (xsltTransformContextPtr ctxt,
  48. xmlNodePtr elem,
  49. xmlNsPtr ns);
  50. XSLTPUBFUN xmlNsPtr XSLTCALL
  51. xsltCopyNamespaceList (xsltTransformContextPtr ctxt,
  52. xmlNodePtr node,
  53. xmlNsPtr cur);
  54. XSLTPUBFUN void XSLTCALL
  55. xsltFreeNamespaceAliasHashes
  56. (xsltStylesheetPtr style);
  57. #ifdef __cplusplus
  58. }
  59. #endif
  60. #endif /* __XML_XSLT_NAMESPACES_H__ */