1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-07-29 15:41:13 +03:00

- libxslt/functions.c libxslt/transform.c libxslt/xsltInternals.h:

add ctxt->inst to allow stylesheet element lookup (needed
  for document() fix)
- libxslt/*.[ch]: generate docs for the structures and
  macros, general cleanup for docs
- doc/html/*.html: regenerated all docs
Daniel
This commit is contained in:
Daniel Veillard
2001-05-17 15:26:12 +00:00
parent 056ac3d111
commit 4f96e211a5
31 changed files with 1301 additions and 1052 deletions

View File

@ -4,7 +4,7 @@
>variables</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.44"><LINK
CONTENT="Modular DocBook HTML Stylesheet Version 1.59"><LINK
REL="HOME"
TITLE="Gnome XSLT Library Reference Manual"
HREF="book1.html"><LINK
@ -18,6 +18,7 @@ REL="NEXT"
TITLE="keys"
HREF="libxslt-keys.html"></HEAD
><BODY
CLASS="REFENTRY"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
@ -121,7 +122,7 @@ NAME="LIBXSLT-VARIABLES"
><DIV
CLASS="REFNAMEDIV"
><A
NAME="AEN2530"
NAME="AEN2451"
></A
><H2
>Name</H2
@ -129,7 +130,7 @@ NAME="AEN2530"
><DIV
CLASS="REFSYNOPSISDIV"
><A
NAME="AEN2533"
NAME="AEN2454"
></A
><H2
>Synopsis</H2
@ -164,20 +165,6 @@ HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
> ctxt,
const char **params);
void <A
HREF="libxslt-variables.html#XSLTPUSHSTACK"
>xsltPushStack</A
> (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);
void <A
HREF="libxslt-variables.html#XSLTPOPSTACK"
>xsltPopStack</A
> (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);
void <A
HREF="libxslt-variables.html#XSLTPARSEGLOBALVARIABLE"
>xsltParseGlobalVariable</A
> (<A
@ -248,9 +235,9 @@ HREF="libxslt-xsltinternals.html#XSLTSTACKELEMPTR"
>xsltStackElemPtr</A
> elems);
void <A
HREF="libxslt-variables.html#XSLTFREEVARIABLEHASHES"
>xsltFreeVariableHashes</A
> (<A
HREF="libxslt-variables.html#XSLTFREEGLOBALVARIABLES"
>xsltFreeGlobalVariables</A
> (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);
@ -294,7 +281,7 @@ HREF="XMLCHAR"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2575"
NAME="AEN2492"
></A
><H2
>Description</H2
@ -304,14 +291,14 @@ NAME="AEN2575"
><DIV
CLASS="REFSECT1"
><A
NAME="AEN2578"
NAME="AEN2495"
></A
><H2
>Details</H2
><DIV
CLASS="REFSECT2"
><A
NAME="AEN2580"
NAME="AEN2497"
></A
><H3
><A
@ -332,9 +319,14 @@ CLASS="PROGRAMLISTING"
></TR
></TABLE
><P
>registering macro, not general purpose at all but used in different modules</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2503"
></A
><P
></P
><TABLE
@ -344,6 +336,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -359,8 +352,9 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
@ -369,7 +363,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2594"
NAME="AEN2512"
></A
><H3
><A
@ -399,6 +393,9 @@ done on parsed stylesheets before starting to apply transformations</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2519"
></A
><P
></P
><TABLE
@ -408,6 +405,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -440,6 +438,7 @@ ALIGN="LEFT"
VALIGN="TOP"
>0 in case of success, -1 in case of error</TD
></TR
></TBODY
></TABLE
><P
></P
@ -448,7 +447,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2614"
NAME="AEN2532"
></A
><H3
><A
@ -479,6 +478,9 @@ done on parsed stylesheets before starting to apply transformations</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2539"
></A
><P
></P
><TABLE
@ -488,6 +490,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -537,6 +540,7 @@ ALIGN="LEFT"
VALIGN="TOP"
>0 in case of success, -1 in case of error</TD
></TR
></TBODY
></TABLE
><P
></P
@ -545,129 +549,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2638"
></A
><H3
><A
NAME="XSLTPUSHSTACK"
></A
>xsltPushStack ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void xsltPushStack (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ctxt</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2653"
></A
><H3
><A
NAME="XSLTPOPSTACK"
></A
>xsltPopStack ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
>void xsltPopStack (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ctxt</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2668"
NAME="AEN2556"
></A
><H3
><A
@ -701,6 +583,9 @@ its value.</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2564"
></A
><P
></P
><TABLE
@ -710,6 +595,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -744,6 +630,7 @@ ALIGN="LEFT"
VALIGN="TOP"
> the "variable" element</TD
></TR
></TBODY
></TABLE
><P
></P
@ -752,7 +639,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2689"
NAME="AEN2577"
></A
><H3
><A
@ -786,6 +673,9 @@ its value.</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2585"
></A
><P
></P
><TABLE
@ -795,6 +685,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -829,6 +720,7 @@ ALIGN="LEFT"
VALIGN="TOP"
> the "param" element</TD
></TR
></TBODY
></TABLE
><P
></P
@ -837,7 +729,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2710"
NAME="AEN2598"
></A
><H3
><A
@ -871,6 +763,9 @@ its value.</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2606"
></A
><P
></P
><TABLE
@ -880,6 +775,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -914,6 +810,7 @@ ALIGN="LEFT"
VALIGN="TOP"
> the "variable" element</TD
></TR
></TBODY
></TABLE
><P
></P
@ -922,7 +819,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2731"
NAME="AEN2619"
></A
><H3
><A
@ -956,6 +853,9 @@ its value.</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2627"
></A
><P
></P
><TABLE
@ -965,6 +865,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -999,6 +900,7 @@ ALIGN="LEFT"
VALIGN="TOP"
> the "param" element</TD
></TR
></TBODY
></TABLE
><P
></P
@ -1007,7 +909,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2752"
NAME="AEN2640"
></A
><H3
><A
@ -1047,6 +949,9 @@ its value but doesn't record it.</P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2650"
></A
><P
></P
><TABLE
@ -1056,6 +961,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -1103,8 +1009,9 @@ CLASS="EMPHASIS"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
>&nbsp;</TD
></TR
></TBODY
></TABLE
><P
></P
@ -1113,7 +1020,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2779"
NAME="AEN2667"
></A
><H3
><A
@ -1146,6 +1053,9 @@ HREF="libxslt-xsltinternals.html#XSLTSTACKELEMPTR"
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2675"
></A
><P
></P
><TABLE
@ -1155,6 +1065,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -1204,6 +1115,7 @@ ALIGN="LEFT"
VALIGN="TOP"
>0 in case of success, -1 in case of failure.</TD
></TR
></TBODY
></TABLE
><P
></P
@ -1212,13 +1124,13 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2804"
NAME="AEN2692"
></A
><H3
><A
NAME="XSLTFREEVARIABLEHASHES"
NAME="XSLTFREEGLOBALVARIABLES"
></A
>xsltFreeVariableHashes ()</H3
>xsltFreeGlobalVariables ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
@ -1228,7 +1140,7 @@ CELLPADDING="6"
><TD
><PRE
CLASS="PROGRAMLISTING"
>void xsltFreeVariableHashes (<A
>void xsltFreeGlobalVariables (<A
HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
>xsltTransformContextPtr</A
> ctxt);</PRE
@ -1236,9 +1148,15 @@ HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
></TR
></TABLE
><P
>Free up the data associated to the global variables
its value.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2699"
></A
><P
></P
><TABLE
@ -1248,6 +1166,7 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -1263,8 +1182,9 @@ CLASS="PARAMETER"
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
> the XSLT transformation context</TD
></TR
></TBODY
></TABLE
><P
></P
@ -1273,7 +1193,7 @@ VALIGN="TOP"
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2819"
NAME="AEN2708"
></A
><H3
><A
@ -1308,12 +1228,15 @@ HREF="XMLCHAR"
></TR
></TABLE
><P
>This is the entry point when a varibale is needed by the XPath
interpretor.</P
>Search in the Variable array of the context for the given
variable value.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2718"
></A
><P
></P
><TABLE
@ -1323,6 +1246,133 @@ BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ctxt</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the XSLT transformation context</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>name</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the variable name</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ns_uri</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
> the variable namespace URI</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>the value or NULL if not found</TD
></TR
></TBODY
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2739"
></A
><H3
><A
NAME="XSLTXPATHVARIABLELOOKUP"
></A
>xsltXPathVariableLookup ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="XMLXPATHOBJECTPTR"
>xmlXPathObjectPtr</GTKDOCLINK
> xsltXPathVariableLookup (void *ctxt,
const <GTKDOCLINK
HREF="XMLCHAR"
>xmlChar</GTKDOCLINK
> *name,
const <GTKDOCLINK
HREF="XMLCHAR"
>xmlChar</GTKDOCLINK
> *ns_uri);</PRE
></TD
></TR
></TABLE
><P
>This is the entry point when a varibale is needed by the XPath
interpretor.</P
><P
></P
><DIV
CLASS="INFORMALTABLE"
><A
NAME="AEN2748"
></A
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TBODY
><TR
><TD
WIDTH="20%"
@ -1389,124 +1439,7 @@ ALIGN="LEFT"
VALIGN="TOP"
>the value or NULL if not found</TD
></TR
></TABLE
><P
></P
></DIV
></DIV
><HR><DIV
CLASS="REFSECT2"
><A
NAME="AEN2850"
></A
><H3
><A
NAME="XSLTXPATHVARIABLELOOKUP"
></A
>xsltXPathVariableLookup ()</H3
><TABLE
BORDER="0"
BGCOLOR="#D6E8FF"
WIDTH="100%"
CELLPADDING="6"
><TR
><TD
><PRE
CLASS="PROGRAMLISTING"
><GTKDOCLINK
HREF="XMLXPATHOBJECTPTR"
>xmlXPathObjectPtr</GTKDOCLINK
> xsltXPathVariableLookup (void *ctxt,
const <GTKDOCLINK
HREF="XMLCHAR"
>xmlChar</GTKDOCLINK
> *name,
const <GTKDOCLINK
HREF="XMLCHAR"
>xmlChar</GTKDOCLINK
> *ns_uri);</PRE
></TD
></TR
></TABLE
><P
></P
><DIV
CLASS="INFORMALTABLE"
><P
></P
><TABLE
BORDER="0"
WIDTH="100%"
BGCOLOR="#FFD0D0"
CELLSPACING="0"
CELLPADDING="4"
CLASS="CALSTABLE"
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ctxt</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>name</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><TT
CLASS="PARAMETER"
><I
>ns_uri</I
></TT
>&nbsp;:</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&nbsp;</TD
></TR
><TR
><TD
WIDTH="20%"
ALIGN="RIGHT"
VALIGN="TOP"
><I
CLASS="EMPHASIS"
>Returns</I
> :</TD
><TD
WIDTH="80%"
ALIGN="LEFT"
VALIGN="TOP"
>&#13;</TD
></TR
></TBODY
></TABLE
><P
></P