summaryrefslogtreecommitdiff
path: root/doc/html/libxslt-variables.html
blob: c057407cff52d711bb899ab0e2af00d40f1d9e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>variables</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css">
        .synopsis, .classsynopsis {
            background: #eeeeee;
            border: solid 1px #aaaaaa;
            padding: 0.5em;
        }
        .programlisting {
            background: #eeeeff;
            border: solid 1px #aaaaff;
            padding: 0.5em;
        }
        .variablelist {
            padding: 4px;
            margin-left: 3em;
        }
        .navigation {
            background: #ffeeee;
            border: solid 1px #ffaaaa;
            margin-top: 0.5em;
            margin-bottom: 0.5em;
        }
        .navigation a {
            color: #770000;
        }
        .navigation a:visited {
            color: #550000;
        }
        .navigation .title {
            font-size: 200%;
        }
      </style><link rel="home" href="index.html" title="Gnome XSLT Library Reference Manual"><link rel="up" href="libxslt-lib.html" title="Libxslt Library Reference"><link rel="previous" href="libxslt-namespaces.html" title="namespaces"><link rel="next" href="libxslt-keys.html" title="keys"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxslt-namespaces.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxslt-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XSLT Library Reference Manual</th><td><a accesskey="n" href="libxslt-keys.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxslt-variables"></a><div class="titlepage"></div><div class="refnamediv"><h2>variables</h2><p>variables &#8212; </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">



#define     <a href="libxslt-variables.html#XSLT-REGISTER-VARIABLE-LOOKUP-CAPS">XSLT_REGISTER_VARIABLE_LOOKUP</a>   (ctxt)
int         <a href="libxslt-variables.html#xsltEvalGlobalVariables">xsltEvalGlobalVariables</a>         (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt);
int         <a href="libxslt-variables.html#xsltEvalUserParams">xsltEvalUserParams</a>              (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const char **params);
int         <a href="libxslt-variables.html#xsltQuoteUserParams">xsltQuoteUserParams</a>             (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const char **params);
int         <a href="libxslt-variables.html#xsltEvalOneUserParam">xsltEvalOneUserParam</a>            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *value);
int         <a href="libxslt-variables.html#xsltQuoteOneUserParam">xsltQuoteOneUserParam</a>           (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *value);
void        <a href="libxslt-variables.html#xsltParseGlobalVariable">xsltParseGlobalVariable</a>         (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);
void        <a href="libxslt-variables.html#xsltParseGlobalParam">xsltParseGlobalParam</a>            (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);
void        <a href="libxslt-variables.html#xsltParseStylesheetVariable">xsltParseStylesheetVariable</a>     (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);
void        <a href="libxslt-variables.html#xsltParseStylesheetParam">xsltParseStylesheetParam</a>        (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);
<a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> <a href="libxslt-variables.html#xsltParseStylesheetCallerParam">xsltParseStylesheetCallerParam</a>
                                            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);
int         <a href="libxslt-variables.html#xsltAddStackElemList">xsltAddStackElemList</a>            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> elems);
void        <a href="libxslt-variables.html#xsltFreeGlobalVariables">xsltFreeGlobalVariables</a>         (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt);
<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlXPathObjectPtr">xmlXPathObjectPtr</GTKDOCLINK> <a href="libxslt-variables.html#xsltVariableLookup">xsltVariableLookup</a>        (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *ns_uri);
<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlXPathObjectPtr">xmlXPathObjectPtr</GTKDOCLINK> <a href="libxslt-variables.html#xsltXPathVariableLookup">xsltXPathVariableLookup</a>   (void *ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *ns_uri);
</pre></div><div class="refsect1" lang="en"><h2>Description</h2><p>

</p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="XSLT-REGISTER-VARIABLE-LOOKUP-CAPS"></a>XSLT_REGISTER_VARIABLE_LOOKUP()</h3><pre class="programlisting">#define     XSLT_REGISTER_VARIABLE_LOOKUP(ctxt)</pre><p>
Registering macro, not general purpose at all but used in different modules.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>


</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltEvalGlobalVariables"></a>xsltEvalGlobalVariables ()</h3><pre class="programlisting">int         xsltEvalGlobalVariables         (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt);</pre><p>
Evaluate the global variables of a stylesheet. This need to be
done on parsed stylesheets before starting to apply transformations</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltEvalUserParams"></a>xsltEvalUserParams ()</h3><pre class="programlisting">int         xsltEvalUserParams              (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const char **params);</pre><p>
<i><tt>ctxt</tt></i>:  the XSLT transformation context
<i><tt>params</tt></i>:  a NULL terminated array of parameters name/value tuples
</p><p>
Evaluate the global variables of a stylesheet. This needs to be
done on parsed stylesheets before starting to apply transformations.
Each of the parameters is evaluated as an XPath expression and stored
in the global variables/parameter hash table.  If you want your
parameter used literally, use xsltQuoteUserParams.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i><tt>params</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltQuoteUserParams"></a>xsltQuoteUserParams ()</h3><pre class="programlisting">int         xsltQuoteUserParams             (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const char **params);</pre><p>
<i><tt>ctxt</tt></i>:  the XSLT transformation context
<i><tt>params</tt></i>:  a NULL terminated arry of parameters names/values tuples
</p><p>
Similar to xsltEvalUserParams, but the values are treated literally and
are * *not* evaluated as XPath expressions. This should be done on parsed
stylesheets before starting to apply transformations.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><i><tt>params</tt></i> :</span></td><td>
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error.
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltEvalOneUserParam"></a>xsltEvalOneUserParam ()</h3><pre class="programlisting">int         xsltEvalOneUserParam            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *value);</pre><p>
This is normally called from xsltEvalUserParams to process a single
parameter from a list of parameters.  The <i><tt>value</tt></i> is evaluated as an
XPath expression and the result is stored in the context's global
variable/parameter hash table.
</p><p>
To have a parameter treated literally (not as an XPath expression)
use xsltQuoteUserParams (or xsltQuoteOneUserParam).  For more
details see description of xsltProcessOneUserParamInternal.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td>  a null terminated string giving the name of the parameter
</td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td>  a null terminated string giving the XPath expression to be evaluated
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error.
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltQuoteOneUserParam"></a>xsltQuoteOneUserParam ()</h3><pre class="programlisting">int         xsltQuoteOneUserParam           (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *value);</pre><p>
This is normally called from xsltQuoteUserParams to process a single
parameter from a list of parameters.  The <i><tt>value</tt></i> is stored in the
context's global variable/parameter hash table.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td>  a null terminated string giving the name of the parameter
</td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td>  a null terminated string giving the parameter value
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error.
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltParseGlobalVariable"></a>xsltParseGlobalVariable ()</h3><pre class="programlisting">void        xsltParseGlobalVariable         (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);</pre><p>
parse an XSLT transformation variable declaration and record
its value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>style</tt></i> :</span></td><td>  the XSLT stylesheet
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td>  the &quot;variable&quot; element
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltParseGlobalParam"></a>xsltParseGlobalParam ()</h3><pre class="programlisting">void        xsltParseGlobalParam            (<a href="libxslt-xsltInternals.html#xsltStylesheetPtr">xsltStylesheetPtr</a> style,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);</pre><p>
parse an XSLT transformation param declaration and record
its value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>style</tt></i> :</span></td><td>  the XSLT stylesheet
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td>  the &quot;param&quot; element
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltParseStylesheetVariable"></a>xsltParseStylesheetVariable ()</h3><pre class="programlisting">void        xsltParseStylesheetVariable     (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);</pre><p>
parse an XSLT transformation variable declaration and record
its value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td>  the &quot;variable&quot; element
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltParseStylesheetParam"></a>xsltParseStylesheetParam ()</h3><pre class="programlisting">void        xsltParseStylesheetParam        (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);</pre><p>
parse an XSLT transformation param declaration and record
its value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td>  the &quot;param&quot; element
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltParseStylesheetCallerParam"></a>xsltParseStylesheetCallerParam ()</h3><pre class="programlisting"><a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> xsltParseStylesheetCallerParam
                                            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlNodePtr">xmlNodePtr</GTKDOCLINK> cur);</pre><p>
parse an XSLT transformation param declaration, compute
its value but doesn't record it.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td>  the &quot;param&quot; element
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the new xsltStackElemPtr or NULL
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltAddStackElemList"></a>xsltAddStackElemList ()</h3><pre class="programlisting">int         xsltAddStackElemList            (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             <a href="libxslt-xsltInternals.html#xsltStackElemPtr">xsltStackElemPtr</a> elems);</pre><p>
add the new element list at this level of the stack.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  xn XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>elems</tt></i> :</span></td><td>  a stack element list
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of failure.
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltFreeGlobalVariables"></a>xsltFreeGlobalVariables ()</h3><pre class="programlisting">void        xsltFreeGlobalVariables         (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt);</pre><p>
Free up the data associated to the global variables
its value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltVariableLookup"></a>xsltVariableLookup ()</h3><pre class="programlisting"><GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlXPathObjectPtr">xmlXPathObjectPtr</GTKDOCLINK> xsltVariableLookup        (<a href="libxslt-xsltInternals.html#xsltTransformContextPtr">xsltTransformContextPtr</a> ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *ns_uri);</pre><p>
Search in the Variable array of the context for the given
variable value.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  the XSLT transformation context
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td>  the variable name
</td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td>  the variable namespace URI
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the value or NULL if not found
</td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xsltXPathVariableLookup"></a>xsltXPathVariableLookup ()</h3><pre class="programlisting"><GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlXPathObjectPtr">xmlXPathObjectPtr</GTKDOCLINK> xsltXPathVariableLookup   (void *ctxt,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *name,
                                             const <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="xmlChar">xmlChar</GTKDOCLINK> *ns_uri);</pre><p>
This is the entry point when a varibale is needed by the XPath
interpretor.</p><p>

</p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td>  a void * but the the XSLT transformation context actually
</td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td>  the variable name
</td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td>  the variable namespace URI
</td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the value or NULL if not found
</td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxslt-namespaces.html"><b>&lt;&lt; namespaces</b></a></td><td align="right"><a accesskey="n" href="libxslt-keys.html"><b>keys &gt;&gt;</b></a></td></tr></table></body></html>