1
  V   ˆl–Ãa¾”†»â€rãn\d
bÑ¿�þHãk8Ô¡la,¯2ð?ŸÂƒd.³Á_ˆI|¥�+y,a–Ým_JJi?u8 q–®	•1hßÁ e    /*
 * Summary: interface for the variable matching and lookup.
 * Description: interface for the variable matching and lookup.
 *
 * Copy: See Copyright for the status of this software.
 *
 * Author: Daniel Veillard
 */

#ifndef __XML_XSLT_VARIABLES_H__
#define __XML_XSLT_VARIABLES_H__

#include <libxml/xpath.h>
#include <libxml/xpathInternals.h>
#include "xsltexports.h"
#include "xsltInternals.h"
#include "functions.h"

#ifdef __cplusplus
extern "C" {
#endif


/**
 * XSLT_REGISTER_VARIABLE_LOOKUP:
 *
 * Registering macro, not general purpose at all but used in different modules.
 */

#define XSLT_REGISTER_VARIABLE_LOOKUP(ctxt)			\
    xmlXPathRegisterVariableLookup((ctxt)->xpathCtxt,		\
	       xsltXPathVariableLookup,	(void *)(ctxt));	\
    xsltRegisterAllFunctions((ctxt)->xpathCtxt);		\
    xsltRegisterAllElement(ctxt);				\
    (ctxt)->xpathCtxt->extra = ctxt

/*
 * Flags for memory management of RVTs
 */

/**
 * XSLT_RVT_LOCAL:
 *
 * RVT is destroyed after the current instructions ends.
 */
#define XSLT_RVT_LOCAL       ((void *)1)

/**
 * XSLT_RVT_FUNC_RESULT:
 *
 * RVT is part of results returned with func:result. The RVT won't be
 * destroyed after exiting a template and will be reset to XSLT_RVT_LOCAL or
 * XSLT_RVT_VARIABLE in the template that receives the return value.
 */
#define XSLT_RVT_FUNC_RESULT ((void *)2)

/**
 * XSLT_RVT_GLOBAL:
 *
 * RVT is part of a global variable.
 */
#define XSLT_RVT_GLOBAL      ((void *)3)

/*
 * Interfaces for the variable module.
 */

XSLTPUBFUN int XSLTCALL
		xsltEvalGlobalVariables		(xsltTransformContextPtr ctxt);
XSLTPUBFUN int XSLTCALL
		xsltEvalUserParams		(xsltTransformContextPtr ctxt,
						 const char **params);
XSLTPUBFUN int XSLTCALL
		xsltQuoteUserParams		(xsltTransformContextPtr ctxt,
						 const char **params);
XSLTPUBFUN int XSLTCALL
		xsltEvalOneUserParam		(xsltTransformContextPtr ctxt,
						 const xmlChar * name,
						 const xmlChar * value);
XSLTPUBFUN int XSLTCALL
		xsltQuoteOneUserParam		(xsltTransformContextPtr ctxt,
						 const xmlChar * name,
						 const xmlChar * value);

XSLTPUBFUN void XSLTCALL
		xsltParseGlobalVariable		(xsltStylesheetPtr style,
						 xmlNodePtr cur);
XSLTPUBFUN void XSLTCALL
		xsltParseGlobalParam		(xsltStylesheetPtr style,
						 xmlNodePtr cur);
XSLTPUBFUN void XSLTCALL
		xsltParseStylesheetVariable	(xsltTransformContextPtr ctxt,
						 xmlNodePtr cur);
XSLTPUBFUN void XSLTCALL
		xsltParseStylesheetParam	(xsltTransformContextPtr ctxt,
						 xmlNodePtr cur);
XSLTPUBFUN xsltStackElemPtr XSLTCALL
		xsltParseStylesheetCallerParam	(xsltTransformContextPtr ctxt,
						 xmlNodePtr cur);
XSLTPUBFUN int XSLTCALL
		xsltAddStackElemList		(xsltTransformContextPtr ctxt,
						 xsltStackElemPtr elems);
XSLTPUBFUN void XSLTCALL
		xsltFreeGlobalVariables		(xsltTransformContextPtr ctxt);
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
		xsltVariableLookup		(xsltTransformContextPtr ctxt,
						 const xmlChar *name,
						 const xmlChar *ns_uri);
XSLTPUBFUN xmlXPathObjectPtr XSLTCALL
		xsltXPathVariableLookup		(void *ctxt,
						 const xmlChar *name,
						 const xmlChar *ns_uri);
#ifdef __cplusplus
}
#endif

#endif /* __XML_XSLT_VARIABLES_H__ */

  5   ˆl–Ým_JJi?u8 pN\ÊbÑ¿�þB g‚yÁ¾ø„×óÅƒh¹Ä¿Â      0000002e
  .   ˆ{‹„„-i[D<†ªoZƒ›Ù«Æ‚p_‘I|¥‰ÓMdœv ©ƒ†ü+=ÂÅ Z    ‹      Õ–ßoÚ0ÇßûWx~Ø?º>´!SG�†Ö¢LÓ4M‘‰±HìÌ¾�²¿~Éí@Û¤uR^ìóùkß}lÇ±÷*˜Ÿg#ò~qGfßÝ�‡„¶ >õ‡ Á"¨:.Û�.ÀhB	�³k€¢(ÚE¿­Ísˆ1M.Á¢‘¶9rê_x¥Ï¿ ^,w5ñPb"ü±ââ‘è�£•\¸q;\le$li£HAi.öE¢,¿›/ënäV™ÑNoµ)}Èt!ŒUê°ÞRó]™M÷…#» {H¶Ü'PšÆ÷0&[–ÈµPÔõ=™®‰5Ñ€‚Œ´²°L˜Ú´×rE	Kp@¿Œ‡Ó¯N—£}�‘ØˆÕ€¾&7ÓA@ý	K…ì´æÞin©Ç,’Ts¹’‚Ÿ?Tâùýü„A¥	„�ŒÌPju�‚C<F�tb3æXß8‚Ø«*	ÿÝj°èÉbÌnç£É"Ï«%áå‡ìþí>RÆŒPHiD„ÚìjÐ*êkµ´ÙÍÏ&©1Œ\ÇH}BZä¤ò/ØsµQºPÇøniO‚3»Sõ÷Õq’Ï²êuzW­n·Õë�NçÚ•äŒÐ}Þþgú9j›ÛL(r‘°]˜ZGsÂÛ@8§G£ê×F²4ü¦mh„ÍS&…Švaîöè\O!M®P:¡»Â�äŽï„³ùh¥ýZi7M¨ò?ËXµ£ÁHæGg°j7¨ºÌvŸú˜[¶>âÚ7_çß[P¿D=Ø¿€=¨Þã? H‹¾ò    5   	ˆl–ß=¿Jõ4Ÿº‚ œP.\· 1hß�þB g Ùl-KŽùÉƒh¹ÈÃÆ      	