UNPKG

@openxmldev/linq-to-ooxml

Version:

OOXML Namespace-related Classes for LINQ to XML for TypeScript

29 lines 883 B
/** * @author Thomas Barnekow * @license MIT */ import { XAttribute, XNamespace } from '@openxmldev/linq-to-xml'; /** * Declares XNamespace and XName fields for the `xmlns:dc="http://purl.org/dc/elements/1.1/"` namespace. */ export class DC { /** @internal */ constructor() { // Ignore } /** * Returns the namespace declaration `XAttribute` for this namespace. */ static get namespaceDeclaration() { return new XAttribute(XNamespace.xmlns.getName('dc'), DC.dc.namespaceName); } } /** * Defines the XML namespace associated with the `dc` prefix. */ DC.dc = XNamespace.get('http://purl.org/dc/elements/1.1/'); DC.creator = DC.dc.getName('creator'); DC.description = DC.dc.getName('description'); DC.subject = DC.dc.getName('subject'); DC.title = DC.dc.getName('title'); //# sourceMappingURL=DC.js.map