From 40e7c29b35c975e4b7ff6275a9f8aaca24a4a86c Mon Sep 17 00:00:00 2001 From: "William M. Brack" Date: Thu, 11 Jan 2007 03:13:13 +0000 Subject: added new function replace from Joel Reed. added new test case for above. * libexslt/strings.c: added new function replace from Joel Reed. * tests/exslt/Makefile.am, replace.1.xml, replace.1.xsl, replace.1.out: added new test case for above. * libxslt.spec.in: trivial change from Gnome to GNOME * configure.in: trivial change for flags on my compilations * libxslt/documents.c, libxslt/documents.h, libxslt/keys.c, libxslt/keys.h, libxslt/variables.c, libxslt/templates.c, libxslt/transform.c, libxslt/variables.c, libxslt/xslt.c, libxslt/xsltutils.c: fixed some documentation/comments and compilation warnings - no change to logic. * re-generated the documentation. svn path=/trunk/; revision=1413 --- doc/libxslt-api.xml | 82 +++++++++++++++++++++++++++++++++-------------------- 1 file changed, 52 insertions(+), 30 deletions(-) (limited to 'doc/libxslt-api.xml') diff --git a/doc/libxslt-api.xml b/doc/libxslt-api.xml index f7361ddf..81af5bc0 100644 --- a/doc/libxslt-api.xml +++ b/doc/libxslt-api.xml @@ -225,18 +225,20 @@ + - + + @@ -670,12 +672,13 @@ Macro to check if the XSLT processing should be stopped. Will goto the error: label. - quick test to detect XSLT attributes + quick check for xslt namespace attribute Checks that the element pertains to XSLT namespace. + quick check whether this is an xslt element Checks the value of an element in XSLT namespace. @@ -686,6 +689,7 @@ + check for bit 15 set Special value for undefined namespace, internal @@ -701,6 +705,7 @@ + get pointer to compiler context The XSLT "vendor" URL for this processor. @@ -727,8 +732,10 @@ A macro to import pointers from the stylesheet cascading order. + get pointer to namespace map + check for namespace mapping internal macro to test tree fragments @@ -776,6 +783,7 @@ Internal define to enable the refactored variable part of libxslt + Internal define to enable the optimization of the compilation of XPath expressions. Registering macro, not general purpose at all but used in different modules. @@ -1506,7 +1514,7 @@ TODO: We need to get rid of this. *'/> - - + Processes all attributes of a Literal Result Element. Attribute references are applied via xsl:use-attribute-set attributes. Copies all non XSLT-attributes over to the @target element and evaluates Attribute Value Templates. Called by xsltApplySequenceConstructor() (transform.c). - + Process one attribute of a Literal Result Element (in the stylesheet). Evaluates Attribute Value Templates and copies the attribute over to the result element. This does *not* process attribute sets (xsl:use-attribute-set). @@ -1707,7 +1715,7 @@ exits'/> - + Check if the given prefix is one of the declared extensions. This is intended to be called only at compile-time. Called by: xsltGetInheritedNsList() (xslt.c) xsltParseTemplateContent (xslt.c) @@ -1781,7 +1789,7 @@ exits'/> - + Copies a namespace node (declaration). If @elem is not NULL, then the new namespace will be declared on @elem. @@ -1803,7 +1811,7 @@ exits'/> - + Adds @string to a newly created or an existent text node child of @target. @@ -1864,7 +1872,7 @@ exits'/> An xsltDocLoaderFunc is a signature for a function which can be registered to load document not provided by the compilation or transformation API themselve, for example when an xsl:import, xsl:include is found at compilation time or when a document() call is made at runtime. - + @@ -1882,7 +1890,7 @@ exits'/> - + Implement the document() XSLT function node-set document(object, node-set?) @@ -1910,7 +1918,7 @@ exits'/> - + Implement the element-available() XSLT function boolean element-available(string) @@ -2049,7 +2057,7 @@ exits'/> Marks the result of a value-returning extension instruction in order to avoid it being garbage collected before the extension instruction exits. Note that one still has to additionally register any newly created tree fragments (via xsltCreateRVT()) with xsltRegisterLocalRVT(). - + Try to find a document within the XSLT transformation context. This will not find document infos for temporary Result Tree Fragments. @@ -2074,9 +2082,9 @@ exits'/> Process the xslt for-each node on the source node - + - + format-number() uses the JDK 1.1 DecimalFormat class: http://java.sun.com/products/jdk/1.1/docs/api/java.text.DecimalFormat.html Structure: pattern := subpattern{;subpattern} subpattern := {prefix}integer{.fraction}{suffix} prefix := '\\u0000'..'\\uFFFD' - specialCharacters suffix := '\\u0000'..'\\uFFFD' - specialCharacters integer := '#'* '0'* '0' fraction := '0'* '#'* Notation: X* 0 or more instances of X (X | Y) either X or Y. X..Y any character from X up to Y, inclusive. S - T characters in S, except those in T Special Characters: Symbol Meaning 0 a digit # a digit, zero shows as absent . placeholder for decimal separator , placeholder for grouping separator. ; separates formats. - default negative prefix. % multiply by 100 and show as percentage ? multiply by 1000 and show as per mille X any other characters can be used in the prefix or suffix ' used to quote special characters in a prefix or suffix. @@ -2115,7 +2123,7 @@ exits'/> Free the keys associated to a document - + Free up all the space used by the loaded documents @@ -2202,7 +2210,7 @@ exits'/> Similar to xmlGetNsProp() but with a slightly different semantic Search and get the value of an attribute associated to a node This attribute has to be anchored in the namespace specified, or has no namespace and the element is in that namespace. This does the entity substitution. This function looks in DTD attribute declaration for #FIXED or default declaration values unless DTD use has been turned off. - + @@ -2323,7 +2331,7 @@ exits'/> - + Initializes the processor (e.g. registers built-in extensions, etc.) @@ -2336,7 +2344,7 @@ exits'/> Computes the key tables this key and for the current input document. - + @@ -2384,6 +2392,20 @@ exits'/> + + Pops all variable values at the given @depth from the stack. + + + + + + + Places the variable onto the local variable stack + + + + + @@ -2462,7 +2484,7 @@ exits'/> - + Convert one number. @@ -2527,7 +2549,7 @@ exits'/> parse an XSLT stylesheet building the associated structures except the processing not needed for imported documents. - + parse an XSLT stylesheet include element @@ -2573,19 +2595,19 @@ exits'/> - + Resets the list, but does not free the allocated array and does not free the content of the list. - + Creates an xsltPointerList structure. - + Frees the xsltPointerList structure. This does not free the content of the list. - + Precomputes an extension module element @@ -2613,7 +2635,7 @@ exits'/> - + Apply the stylesheet to the document and dump the profiling to the given output. @@ -2942,9 +2964,9 @@ exits'/> - Split QNames into prefix and local names, both allocated from a dictionnary. + Split QNames into prefix and local names, both allocated from a dictionary. - + @@ -2986,8 +3008,8 @@ exits'/> - Obsolete. Does always return NULL. Don't use it. - + Obsolete. Don't use it. + @@ -3085,7 +3107,7 @@ exits'/> - + Search in the Variable array of the context for the given variable value. -- cgit v1.2.3