23.03.2017 Views

wilamowski-b-m-irwin-j-d-industrial-communication-systems-2011

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Industrial Internet 56-7<br />

56.3.2.2 eXtensible Markup Language<br />

HTML has limitations concerning its mixture of presentation-related and content-related markup. In<br />

order to separate the content from its presentation, the XML has been specified [TBR98]. XML was<br />

developed and established as a markup language for generic purpose. XML is often treated as a Meta<br />

language suitable for development of customized, specific languages.<br />

XML expands the description language HTML with user-defined tags, data types, and structures.<br />

Furthermore, it addresses one of the limitations in HTML—it introduces a clear separation between the<br />

data descriptions, the data themselves, and their representation (Figure 56.6). For declaring syntactical<br />

information, a separate definition file XML Schema Definition Language (XSD) [XSD01] or Document<br />

Type Definition (DTD) is used. This allows reusing the description structure in different contexts. This<br />

provides a number of benefits when using the same XML description file for different tasks. In combination<br />

with Namespace definitions semantics can be defined. Namespaces allow establishing a clear<br />

relation between tags defined in a schema and their usage context.<br />

The availability of a wide range of software tools allows creating effective XML-based solutions.<br />

Publicly available solutions for parsers and development frameworks supporting different platforms and<br />

different operating <strong>systems</strong> contribute to the actual hype of using XML as a general-purpose description<br />

language. The XML data can be filtered and associated to software. The selection of the necessary<br />

information and the definition of their presentation details can be performed by means of scripts and<br />

style sheets. The style sheets [FBO98] are part of the development of XML. In most cases, they are<br />

implemented using the eXtensible Style Language for Transformation (XSLT). An XML document can<br />

be related to different style sheets for different presentation or conversion functions, so that only the<br />

XSLT references have to be changed. Since style sheets in XSLT can contain script elements, a Document<br />

Object Model (DOM) [DOM98] has been developed to support scripting. This DOM is used to access<br />

the XML file and its elements from a script. The DOM programming objects provide interfaces to the<br />

original XML file, representing its structure as a tree of objects. The output data of the DOM functions<br />

can be used to generate any textual or binary files, including new XML files with a different structure.<br />

The major benefit of this solution is a unique, reusable description with an excellent consistency and<br />

reduced efforts of the description process.<br />

Applications of XML in the <strong>industrial</strong> domain have developed with increasing speed. They cover<br />

static descriptions for multiple purposes, for example, device descriptions, data exchange descriptions,<br />

and protocol descriptions using SOAP and WSDL (e.g., OPC and XML specification [OPC04]).<br />

A special importance for visualization tasks is assigned to Scalable Vector Graphics (SVG) [SVG01],<br />

an XML format for presentation of two-dimensional vector-based graphics including functions for<br />

<br />

<br />

<br />

<br />

<br />

<br />

Value<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

XML-file<br />

(Description<br />

content)<br />

Document type<br />

definition—DTD<br />

Schema<br />

(Syntax, Semantics)<br />

Output files<br />

Style-sheet<br />

(Formatting<br />

instructions)<br />

FIGURE 56.6<br />

Structure of an XML file (left) and the XML environment.<br />

© <strong>2011</strong> by Taylor and Francis Group, LLC

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!