Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/dom/xslt/xslt/     Datei vom 27.6.2026 mit Größe 13 kB image not shown  

Impressum txXSLTProcessor.cpp  Sprache: C


/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */


#include "txXSLTProcessor.h"

#include "txExecutionState.h"
#include "txExprResult.h"
#include "txInstructions.h"
#include "txLog.h"
#include "txStylesheetCompileHandlers.h"
#include "txStylesheetCompiler.h"

TX_LG_IMPL

/* static */
bool txXSLTProcessor::init() {
  TX_LG_CREATE;

  if (!txHandlerTable::init()) return false;

  extern bool TX_InitEXSLTFunction();
  if (!TX_InitEXSLTFunction()) return false;

  return true;
}

/* static */
void txXSLTProcessor::shutdown() { txHandlerTable::shutdown(); }

/* static */
nsresult txXSLTProcessor::execute(txExecutionState& aEs) {
  nsresult rv;
  do {
    mozilla::Result<txInstruction*, nsresult> result = aEs.getNextInstruction();
    if (result.isErr()) {
      return result.unwrapErr();
    }

    txInstruction* instr = result.unwrap();
    if (!instr) {
      return NS_OK;
    }

    rv = instr->execute(aEs);
  } while (NS_SUCCEEDED(rv));

  return rv;
}

Messung
CHZG
979810098

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*Bot Zugriff