mirror of
https://gitlab.gnome.org/GNOME/libxslt
synced 2025-11-09 22:20:55 +03:00
- libxslt/numbers.c libxslt/numbersInternals.h libxslt/xslt.c libxslt/pattern.[ch] libxslt/xsltInternals.h: more work on support of namespaces, both in templates and in XPath subexpressions Daniel
43 lines
954 B
C
43 lines
954 B
C
/*
|
|
* numbers.h: Implementation of the XSLT number functions
|
|
*
|
|
* See Copyright for the status of this software.
|
|
*
|
|
* Daniel.Veillard@imag.fr
|
|
* Bjorn Reese <breese@users.sourceforge.net>
|
|
*/
|
|
|
|
#ifndef __XML_XSLT_NUMBERSINTERNALS_H__
|
|
#define __XML_XSLT_NUMBERSINTERNALS_H__
|
|
|
|
#include <libxml/tree.h>
|
|
#include "xsltInternals.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* This data structure is just a wrapper to pass data in
|
|
*/
|
|
typedef struct _xsltNumberData {
|
|
xmlChar *level;
|
|
xmlChar *count;
|
|
xmlChar *from;
|
|
xmlChar *value;
|
|
xmlChar *format;
|
|
int digitsPerGroup;
|
|
xmlChar groupingCharacter;
|
|
xmlDocPtr doc;
|
|
xmlNodePtr node;
|
|
} xsltNumberData, *xsltNumberDataPtr;
|
|
|
|
xmlXPathError xsltFormatNumberConversion(xsltDecimalFormatPtr, xmlChar *,
|
|
double, xmlChar **);
|
|
void xsltNumberFormat(xsltTransformContextPtr, xsltNumberDataPtr, xmlNodePtr);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif /* __XML_XSLT_NUMBERSINTERNALS_H__ */
|