FP Web-Server V2.11

7.1 Details on the FP Web-Server's Web Page Functions

 

 

7.1.16 Notes on HTML Frames

In the following file "MAIN.HTM" of "Example8" two frames are used.

The content of each frame is stored in a separate HTML file:

TOP.HTM

UNTEN.HTM

Each HTML file can be edited separately. Both HTM files show PLC data but the TOP.htm site is automatically updated every second.

7.1.17 Notes on XML Files with PLC DataThe FP Web-Server can deliver XML files

The FP Web-Server's http server can also deliver PLC data within XML files. Similar to an HTML file, the XML file can include the special PLC data tag (see "Data Fields for Displaying PLC Data on HTML Pages" on page 77) {TTxxxy_aa_bb}. This tag is replaced by the actual PLC data at the time the XML file is requested (see page 73) from a client in the form "http://199.199.26.52/plc?filename.xml"

General XML Info

The XML file format is a sort of ASCII text file designed for data exchange (data import/export, data base interface …). An XML file contains only structured data and not style or format information.

The XML file format is a sort of ASCII text file designed for data exchange (data import/export, data base interface …). An XML file contains only structured data and not style or format information. An XSL file with style and format information is needed to transform an XML into a different file (display) format. The "transformNode()" function of the Microsoft Internet Explorer is used to take the XML data and an XSL format definition to generate an HTML page.

The XML / XSL conversion is demonstrated in "Example14".

XML file handling is carried out in four steps (based on "Example14"):

1.For example, the user generated XML file (including PLC data tags) "Producn.xml" may look like:

97