Skip to content
Snippets Groups Projects
Commit b04644916767 authored by Daniel Veillard's avatar Daniel Veillard
Browse files

Matt Sergeant reported a bug when having comments within an <xsl:text>

* libxslt/xslt.c: Matt Sergeant reported a bug when having comments
  within an <xsl:text>
Daniel
parent d2e1fc50dbd1
Branches
No related tags found
No related merge requests found
Wed Dec 4 18:12:24 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/xslt.c: Matt Sergeant reported a bug when having comments
within an <xsl:text>
Mon Dec 2 17:19:38 CET 2002 Daniel Veillard <daniel@veillard.com> Mon Dec 2 17:19:38 CET 2002 Daniel Veillard <daniel@veillard.com>
* libxslt/extensions.c: applied patch from Josh Parsons fixing bug * libxslt/extensions.c: applied patch from Josh Parsons fixing bug
......
...@@ -1397,6 +1397,10 @@ ...@@ -1397,6 +1397,10 @@
} }
while (text != NULL) { while (text != NULL) {
if (text->type == XML_COMMENT_NODE) {
text = text->next;
continue;
}
if ((text->type != XML_TEXT_NODE) && if ((text->type != XML_TEXT_NODE) &&
(text->type != XML_CDATA_SECTION_NODE)) { (text->type != XML_CDATA_SECTION_NODE)) {
xsltTransformError(NULL, style, cur, xsltTransformError(NULL, style, cur,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment