/   Site Map  /   About Us  /  General Products  /  MV Products  /  Outsourcing   / Home page   /

PixieWare Software Documentation

Pixieware and XML

 
 
Single Page 
Web Apps

PixieWare and XML

The PICKBASIC program can generate data strings that are either in HTML or XML format. XML data strings are processed by an XSL transform specification to convert the data into the HTML format, so that it can be incorporated by the Web Browser into standard HTML documents. Our standard PixieWeb/PixieLink script libraries contain code to automatically perform the transform. A set of Pixie keywords for PICK have been purposely developed to handle XSL transformations: CXSL, CXML, CXIREPLACE, SXSL, SXML, SXIREPLACE. 

The design intent of these commands is to provide some flexibility as to where the XSL transformation will take place - on the Web-Server (prefix S) or in the Web-Browser (prefix C). The XSL script is usually stored on the Web-Server and may edited by any common text or special editor as long as the XSL format is followed.

This example of the PICKBASIC code to generate XML identifies the significant features of these commands:

CRT "^CXSL|FILE=mytransform.xsl":

CRT "^CXML|STRING=":XML:

CRT "^CXIREPLACE|mydisplayarea":

Where:

  1. This set of commands must coded strictly in this sequence.

  2. If server side processing is required the prefix of C must be changed to S (CXSL becomes SXSL, CXML becomes SXML, CXIREPLACE becomes SXIREPLACE).  Note that product "PixieLink" uses HTML in a simplified architecture direct to PICK-etc without any Web-Server, so only the "C" versions are available for "PixieLink".

  3. The FILE eg "mytransform.xsl" is the XSL transform code and can be stored on the Web-Server for PixieWeb.  PixieLink can also use the local client file system or shared network drives.

  4. The STRING XML is a PICK variable used to store the XML data.

  5. The HTML document area that will be the display area for the transformed XML data is "mydisplayarea". 
    eg <DIV id="mydisplayarea"></DIV>< /FONT> . 

  6. The FILE and STRING parameters are available for CXSL, CXML, SXSL, SXML. That is the XML or the XSL may be either a file or a data string.

Please note that the ASP script can be altered to output the converted data to a file or any other media, if HTML output is not required. 

 

View Example XML, XSL and VB Script codes

Email: sales@pixieware.com

/   Site Map  /   About Us  /  General Products  /  MV Products  /  Outsourcing   / Home page   /