UNPKG

typesxml

Version:

Open source XML library written in TypeScript

36 lines (35 loc) 1.41 kB
/******************************************************************************* * Copyright (c) 2023 - 2024 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse License 1.0 * which accompanies this distribution, and is available at * https://www.eclipse.org/org/documents/epl-v10.html * * Contributors: * Maxprograms - initial API and implementation *******************************************************************************/ import { XMLElement } from "./XMLElement"; export declare class Catalog { systemCatalog: Map<string, string>; publicCatalog: Map<string, string>; uriCatalog: Map<string, string>; dtdCatalog: Map<string, string>; uriRewrites: Array<string[]>; systemRewrites: Array<string[]>; workDir: string; base: string; constructor(catalogFile: string); recurse(catalogRoot: XMLElement): void; makeAbsolute(uri: string): string; unwrapUrn(urn: string): string; getSystemCatalog(): Map<string, string>; getPublicCatalog(): Map<string, string>; getUriCatalog(): Map<string, string>; getDtdCatalog(): Map<string, string>; getUriRewrites(): Array<string[]>; getSystemRewrites(): Array<string[]>; resolveEntity(publicId: string, systemId: string): string; matchSystem(systemId: string): string; matchPublic(publicId: string): string; }