UNPKG

typesxml

Version:

Open source XML library written in TypeScript

55 lines (54 loc) 1.93 kB
/******************************************************************************* * Copyright (c) 2023-2026 Maxprograms. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public 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 { Catalog } from "./Catalog.js"; import { type AttributeDefault } from "./XMLSchemaParser.js"; export declare class RelaxNGParser { private readonly catalog?; private readonly baseDir; private readonly root; private defaultPrefix; private defaultNamespace; private definitions; private elements; private divsRemoved; constructor(schemaPath: string, catalog?: Catalog); getElements(): Map<string, Map<string, AttributeDefault>>; private storeElementDefaults; private cloneAttributeDefaultMap; private collectAttributeDefaultsFromPattern; private addAttributeDefault; private extractNameInfo; private findDefaultValue; private findDefaultValueFromChildren; private setAttributeDefault; private buildAttributeKey; private removeForeign; private replaceExternalRef; private replaceIncludes; private removeDivs; private harvestDefinitions; private harvestElements; private nameAttribute; private augmentNamespaceContext; private resolveNamespaceBinding; private resolveHref; private normalizeResolvedPath; private createRelaxNGElement; private isBlankText; private getLocalNameFromElement; private getLocalNameFromString; private getPrefix; private isCompatibilityAnnotation; private isRelaxNGElement; private findChildByLocalName; private getRootElement; }