QXML DOM

from Wikipedia, the free encyclopedia

The QXML DOM , short for QuarkXPress Markup Language Document Object Model , is the JavaScript - programming interface to access the document object model of QuarkXPress and was presented for the first time of 2005. QuarkXPress is a layout program for creating print layouts, e-books and digital layouts (for native apps and progressive web apps ).

background

The QXML DOM is based on the “WHATWG HTML Living Standard Custom Elements” specifications, which are part of the W3C DOM specifications. Each element of the QXML DOM is a custom HTML5 element that represents a part of a QuarkXPress layout. This is represented by its own name and contains all the attributes and style elements of the object.

Since QXML elements are based on the W3C HTML standard, they are similar to DOM objects in HTML.

Like this one, QXML DOM elements are formatted using custom CSS properties. The HTML “style” attribute is used to define the CSS properties of the QXML element inline.

QX JavaScript

QX.js was published in 2018 at the same time as the publicly accessible QXML DOM in QuarkXPress 2018. QX.js is a JavaScript development platform to get programmatic access to various QuarkXPress commands and also to the document model of QuarkXPress layouts.

QX.js gives access to JavaScript objects like app and fs, as well as to classes like layout, project and others.

The QX.js platform is based on the Chromium Embedded Framework (CEF).

It corresponds to ECMAScript as specified in ECMA-262.

example

Load image into a picture frame:

var imgPath = "file:///<path>";

//getting image node for the first picture box<br>
imgNode = app.activeLayoutDOM().getElementsByTagName('qx-img')[0];

//Set the Source<br>
imgNode.setAttribute('src', imgPath);

history

On January 14, 2005, QXML DOM was introduced at MacWorld in San Francisco. From 2005 to 2018 QXML was just registered development partner of Quark Inc. accessible. The first publicly available version of QXML DOM has been available since May 16, 2018 through publication within QuarkXPress 2018.

Individual evidence

  1. Quark Commits to Open Standards by Opening QuarkXPress File Format As XML; New QXML DOM Schema Makes Developing XTensions Software for QuarkXPress Easier Than Ever. Retrieved June 19, 2018 .
  2. Core concepts. Retrieved June 19, 2018 .
  3. Quark introduces QXML. Retrieved June 19, 2018 .
  4. Welcome culture - redefined. Retrieved June 19, 2018 .

Web links