Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
libxslt
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OpenVMS
libraries
libxslt
Commits
d510b2f0d033
Commit
d510b2f0d033
authored
24 years ago
by
Daniel Veillard
Browse files
Options
Downloads
Patches
Plain Diff
very early steps, Daniel.
parent
361132ed976c
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
ChangeLog
+5
-0
5 additions, 0 deletions
ChangeLog
libxslt/Makefile.am
+1
-1
1 addition, 1 deletion
libxslt/Makefile.am
libxslt/xslt.c
+55
-0
55 additions, 0 deletions
libxslt/xslt.c
libxslt/xsltInternals.h
+2
-0
2 additions, 0 deletions
libxslt/xsltInternals.h
libxslt/xsltproc.c
+3
-2
3 additions, 2 deletions
libxslt/xsltproc.c
with
66 additions
and
3 deletions
ChangeLog
+
5
−
0
View file @
d510b2f0
Sun Jan 7 16:11:42 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* libxslt/xslt.[ch] libxslt/xsltInternals.h libxslt/xsltproc.c:
very early coding
Sun Jan 7 15:10:54 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
Sun Jan 7 15:10:54 CET 2001 Daniel Veillard <Daniel.Veillard@imag.fr>
* configure.in Makefile.am AUTHORS NEWS autogen.sh config.h.in
* configure.in Makefile.am AUTHORS NEWS autogen.sh config.h.in
...
...
This diff is collapsed.
Click to expand it.
libxslt/Makefile.am
+
1
−
1
View file @
d510b2f0
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
noinst_PROGRAMS
=
xsltproc
noinst_PROGRAMS
=
xsltproc
DEPS
=
$(
top_builddir
)
/libxslt/libxslt.la
DEPS
=
$(
top_builddir
)
/libxslt/libxslt.la
LDADDS
=
$(
top_builddir
)
/libxslt/libxslt.la
$(
LIBXML_LIBS
)
LDADDS
=
-L
.
$(
top_builddir
)
/libxslt/libxslt.la
$(
LIBXML_LIBS
)
xsltproc_SOURCES
=
xsltproc.c
xsltproc_SOURCES
=
xsltproc.c
xsltproc_LDFLAGS
=
xsltproc_LDFLAGS
=
...
...
This diff is collapsed.
Click to expand it.
libxslt/xslt.c
+
55
−
0
View file @
d510b2f0
...
@@ -9,5 +9,8 @@
...
@@ -9,5 +9,8 @@
* Daniel.Veillard@imag.fr
* Daniel.Veillard@imag.fr
*/
*/
#include
<string.h>
#include
<libxml/xmlmemory.h>
#include
<libxml/parser.h>
#include
<libxml/parser.h>
#include
<libxml/tree.h>
#include
<libxml/tree.h>
...
@@ -12,5 +15,6 @@
...
@@ -12,5 +15,6 @@
#include
<libxml/parser.h>
#include
<libxml/parser.h>
#include
<libxml/tree.h>
#include
<libxml/tree.h>
#include
<libxml/xmlerror.h>
#include
<libxslt/xslt.h>
#include
<libxslt/xslt.h>
#include
<libxslt/xsltInternals.h>
#include
<libxslt/xsltInternals.h>
...
@@ -14,6 +18,12 @@
...
@@ -14,6 +18,12 @@
#include
<libxslt/xslt.h>
#include
<libxslt/xslt.h>
#include
<libxslt/xsltInternals.h>
#include
<libxslt/xsltInternals.h>
/*
* There is no XSLT specific error reporting module yet
*/
#define xsltGenericError xmlGenericError
#define xsltGenericErrorContext xmlGenericErrorContext
/************************************************************************
/************************************************************************
* *
* *
* Routines to handle XSLT data structures *
* Routines to handle XSLT data structures *
...
@@ -21,6 +31,27 @@
...
@@ -21,6 +31,27 @@
************************************************************************/
************************************************************************/
/**
/**
* xsltNewStylesheet:
*
* Create a new XSLT Stylesheet
*
* Returns the newly allocated xsltStylesheetPtr or NULL in case of error
*/
xsltStylesheetPtr
xsltNewStylesheet
(
void
)
{
xsltStylesheetPtr
cur
;
cur
=
(
xsltStylesheetPtr
)
xmlMalloc
(
sizeof
(
xsltStylesheet
));
if
(
cur
==
NULL
)
{
xsltGenericError
(
xsltGenericErrorContext
,
"xsltNewStylesheet : malloc failed
\n
"
);
return
(
NULL
);
}
memset
(
cur
,
0
,
sizeof
(
xsltStylesheet
));
return
(
cur
);
}
/**
* xsltFreeStylesheet:
* xsltFreeStylesheet:
* @sheet: an XSLT stylesheet
* @sheet: an XSLT stylesheet
*
*
...
@@ -28,6 +59,12 @@
...
@@ -28,6 +59,12 @@
*/
*/
void
void
xsltFreeStylesheet
(
xsltStylesheetPtr
sheet
)
{
xsltFreeStylesheet
(
xsltStylesheetPtr
sheet
)
{
if
(
sheet
==
NULL
)
return
;
if
(
sheet
->
doc
!=
NULL
)
xmlFreeDoc
(
sheet
->
doc
);
memset
(
sheet
,
-
1
,
sizeof
(
xsltStylesheet
));
xmlFree
(
sheet
);
}
}
/************************************************************************
/************************************************************************
...
@@ -48,6 +85,24 @@
...
@@ -48,6 +85,24 @@
xsltStylesheetPtr
xsltStylesheetPtr
xsltParseStylesheetFile
(
const
xmlChar
*
filename
)
{
xsltParseStylesheetFile
(
const
xmlChar
*
filename
)
{
xsltStylesheetPtr
ret
;
xsltStylesheetPtr
ret
;
xmlDocPtr
doc
;
if
(
filename
==
NULL
)
return
(
NULL
);
doc
=
xmlParseFile
(
filename
);
if
(
doc
==
NULL
)
{
xsltGenericError
(
xsltGenericErrorContext
,
"xsltParseStylesheetFile : cannot parse %s
\n
"
,
filename
);
return
(
NULL
);
}
ret
=
xsltNewStylesheet
();
if
(
ret
==
NULL
)
{
xmlFreeDoc
(
doc
);
return
(
NULL
);
}
ret
->
doc
=
doc
;
return
(
ret
);
return
(
ret
);
}
}
...
...
This diff is collapsed.
Click to expand it.
libxslt/xsltInternals.h
+
2
−
0
View file @
d510b2f0
...
@@ -21,9 +21,10 @@
...
@@ -21,9 +21,10 @@
typedef
struct
_xsltStylesheet
xsltStylesheet
;
typedef
struct
_xsltStylesheet
xsltStylesheet
;
typedef
xsltStylesheet
*
xsltStylesheetPtr
;
typedef
xsltStylesheet
*
xsltStylesheetPtr
;
struct
_xsltStylesheet
{
struct
_xsltStylesheet
{
xmlDocPtr
doc
;
/* the parsed XML stylesheet */
};
};
/*
/*
* Functions associated to the internal types
* Functions associated to the internal types
*/
*/
xsltStylesheetPtr
xsltParseStylesheetFile
(
const
xmlChar
*
filename
);
xsltStylesheetPtr
xsltParseStylesheetFile
(
const
xmlChar
*
filename
);
...
@@ -24,9 +25,10 @@
...
@@ -24,9 +25,10 @@
};
};
/*
/*
* Functions associated to the internal types
* Functions associated to the internal types
*/
*/
xsltStylesheetPtr
xsltParseStylesheetFile
(
const
xmlChar
*
filename
);
xsltStylesheetPtr
xsltParseStylesheetFile
(
const
xmlChar
*
filename
);
void
xsltFreeStylesheet
(
xsltStylesheetPtr
sheet
);
#ifdef __cplusplus
#ifdef __cplusplus
}
}
...
...
This diff is collapsed.
Click to expand it.
libxslt/xsltproc.c
+
3
−
2
View file @
d510b2f0
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
* Daniel.Veillard@imag.fr
* Daniel.Veillard@imag.fr
*/
*/
#include
<string.h>
#include
<libxml/xmlmemory.h>
#include
<libxslt/xslt.h>
#include
<libxslt/xslt.h>
#include
<libxslt/xsltInternals.h>
#include
<libxslt/xsltInternals.h>
...
@@ -13,8 +15,7 @@
...
@@ -13,8 +15,7 @@
int
int
main
(
int
argc
,
char
**
argv
)
{
main
(
int
argc
,
char
**
argv
)
{
int
i
,
count
;
int
i
;
int
files
=
0
;
xsltStylesheetPtr
cur
;
xsltStylesheetPtr
cur
;
LIBXML_TEST_VERSION
LIBXML_TEST_VERSION
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment