Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
GNOME
libxslt
Commits
937ba2a3
Commit
937ba2a3
authored
Aug 08, 2012
by
Daniel Veillard
Browse files
Fix default template processing on namespace nodes
parent
1d62941e
Changes
1
Hide whitespace changes
Inline
Side-by-side
libxslt/transform.c
View file @
937ba2a3
...
...
@@ -4895,7 +4895,10 @@ xsltApplyTemplates(xsltTransformContextPtr ctxt, xmlNodePtr node,
list
=
xmlXPathNodeSetCreate
(
NULL
);
if
(
list
==
NULL
)
goto
error
;
cur
=
node
->
children
;
if
(
node
->
type
!=
XML_NAMESPACE_DECL
)
cur
=
node
->
children
;
else
cur
=
NULL
;
while
(
cur
!=
NULL
)
{
switch
(
cur
->
type
)
{
case
XML_TEXT_NODE
:
...
...
@@ -4944,6 +4947,8 @@ xsltApplyTemplates(xsltTransformContextPtr ctxt, xmlNodePtr node,
if
(
cur
->
prev
!=
NULL
)
cur
->
prev
->
next
=
cur
->
next
;
break
;
case
XML_NAMESPACE_DECL
:
break
;
default:
#ifdef WITH_XSLT_DEBUG_PROCESS
XSLT_TRACE
(
ctxt
,
XSLT_TRACE_APPLY_TEMPLATES
,
xsltGenericDebug
(
xsltGenericDebugContext
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment