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
564229366f81
Commit
564229366f81
authored
3 years ago
by
Nick Wellnhofer
Browse files
Options
Downloads
Patches
Plain Diff
Remove case labels with XPointer location types
parent
068dd813f30d
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
libxslt/functions.c
+9
-27
9 additions, 27 deletions
libxslt/functions.c
python/types.c
+0
-3
0 additions, 3 deletions
python/types.c
with
9 additions
and
30 deletions
libxslt/functions.c
+
9
−
27
View file @
56422936
...
...
@@ -187,21 +187,7 @@
xmlXPathFreeContext
(
xptrctxt
);
#endif
/* LIBXML_XPTR_ENABLED */
if
(
resObj
==
NULL
)
goto
out_fragment
;
switch
(
resObj
->
type
)
{
case
XPATH_NODESET
:
break
;
case
XPATH_UNDEFINED
:
case
XPATH_BOOLEAN
:
case
XPATH_NUMBER
:
case
XPATH_STRING
:
case
XPATH_POINT
:
case
XPATH_USERS
:
case
XPATH_XSLT_TREE
:
case
XPATH_RANGE
:
case
XPATH_LOCATIONSET
:
if
((
resObj
!=
NULL
)
&&
(
resObj
->
type
!=
XPATH_NODESET
))
{
xsltTransformError
(
tctxt
,
NULL
,
NULL
,
"document() : XPointer does not select a node set: #%s
\n
"
,
fragment
);
...
...
@@ -205,6 +191,7 @@
xsltTransformError
(
tctxt
,
NULL
,
NULL
,
"document() : XPointer does not select a node set: #%s
\n
"
,
fragment
);
goto
out_object
;
xmlXPathFreeObject
(
resObj
);
resObj
=
NULL
;
}
...
...
@@ -209,4 +196,7 @@
}
out_fragment:
if
(
resObj
==
NULL
)
resObj
=
xmlXPathNewNodeSet
(
NULL
);
valuePush
(
ctxt
,
resObj
);
xmlFree
(
fragment
);
...
...
@@ -211,13 +201,5 @@
valuePush
(
ctxt
,
resObj
);
xmlFree
(
fragment
);
return
;
out_object:
xmlXPathFreeObject
(
resObj
);
out_fragment:
valuePush
(
ctxt
,
xmlXPathNewNodeSet
(
NULL
));
xmlFree
(
fragment
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
python/types.c
+
0
−
3
View file @
56422936
...
...
@@ -491,9 +491,6 @@
case
XPATH_STRING
:
ret
=
PY_IMPORT_STRING
((
char
*
)
obj
->
stringval
);
break
;
case
XPATH_POINT
:
case
XPATH_RANGE
:
case
XPATH_LOCATIONSET
:
default:
#ifdef DEBUG
printf
(
"Unable to convert XPath object type %d
\n
"
,
obj
->
type
);
...
...
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