From 74728cab059572ea897912f3ffe695b480407ed0 Mon Sep 17 00:00:00 2001 From: Jonas Fonseca Date: Sat, 28 Jan 2006 01:00:28 +0100 Subject: [PATCH] Also set the node subtype for --- src/dom/node.h | 5 ++--- src/dom/sgml/parser.c | 4 ++++ 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/dom/node.h b/src/dom/node.h index 9f4d2cfbd..f7de061b8 100644 --- a/src/dom/node.h +++ b/src/dom/node.h @@ -151,9 +151,8 @@ enum dom_proc_instruction_type { DOM_PROC_INSTRUCTION, /* Keep this group sorted */ - DOM_PROC_INSTRUCTION_DBHTML, /* DocBook toolchain instruction */ - DOM_PROC_INSTRUCTION_ELINKS, /* Internal instruction hook */ - DOM_PROC_INSTRUCTION_XML, /* XML instructions */ + DOM_PROC_INSTRUCTION_XML, /* XML header */ + DOM_PROC_INSTRUCTION_XML_STYLESHEET, /* XML stylesheet link */ DOM_PROC_INSTRUCTION_TYPES }; diff --git a/src/dom/sgml/parser.c b/src/dom/sgml/parser.c index bda43c5c5..c8511d56a 100644 --- a/src/dom/sgml/parser.c +++ b/src/dom/sgml/parser.c @@ -117,6 +117,10 @@ add_sgml_proc_instruction(struct dom_stack *stack, struct dom_scanner_token *tar node->data.proc_instruction.type = DOM_PROC_INSTRUCTION_XML; break; + case SGML_TOKEN_PROCESS_XML_STYLESHEET: + node->data.proc_instruction.type = DOM_PROC_INSTRUCTION_XML_STYLESHEET; + break; + case SGML_TOKEN_PROCESS: default: node->data.proc_instruction.type = DOM_PROC_INSTRUCTION;