mpfserver Manual
 
 
 MPFT | MPF Transformation of XML-Documents
MPF-Transformation (MPFT)
MPFT provides automatic conversion of database table files (XML) using formatter-tag library (XML).
I) create a database table file
1) create xml-file
create a text-file and rename it to "myfile.xml". then open created file with any text-editor and add the following code:
2) add root-node
<?xml version="1.0" encoding="ISO-8859-1"?>
<page title="myTitle">
...
</page>

name of root-node must be lowercase (name of tag will become name of token)

you may define your own attributes for root-node
3) add child-nodes
<?xml version="1.0" encoding="ISO-8859-1"?>
<page title="myTitle">

<h1>firstParagraph</h1>

<p>you may <link url="http://www.xy.com">click here</link> to go...</p>

<pic url="http://www.xy.com/xy.gif"/>

</page>

all child nodes must be lowercase and must not be named like root node

you may define your own attributes for (sub-)child-nodes

if data of your (sub-)child-nodes contain special characters (that are not compliant with XML) put them between CDATA-brackets
II) create a formatter-tag library file
1) create xml-file
create a text-file and rename it to "myfile.xml". then open created file with any text-editor and add the following code:
2) add root-node
<?xml version="1.0" encoding="ISO-8859-1"?>
<taglib>
...
</taglib>

name of root-node must be lowercase and must end with "lib" (name of tag will become name of library-token)

attributes of root-node will be ignored
3) add child-nodes
<?xml version="1.0" encoding="ISO-8859-1"?>
<taglib>

<title>
  <open>
    <![CDATA[<div class="title" >]]>
  </open>
  <close>
    <![CDATA[</div>]]>
  </close>
</title>

</taglib>

all child nodes must be lowercase and must not be named like root node

attributes of child-nodes attributes will be ignored

every child-node can have two sub-nodes named "open" and "close"

if data of your sub-nodes contain special characters (that are not compliant with XML) put them between CDATA-brackets
A) automatic tag conversion:

formatter-tags must have identical names as tags they are going to convert.

unformatted content will be shown for content-tags that have no formatter-tag defined
B) transformation of attributes
The following token may be used to display value of attributes you defined for xml-tags in database table file
{mpf:attrib/[attribute-name]}

"mpf:attrib"-token may be used within "open" and "close"-tags

attribute-token has temporary character

conditions or other parameters are not supported
Examples
transform an XML-file using MPFT
{mpf:xml=E:/test.xml||xsl=E:/taglib.xml}
 
 
2004 by master-p-formance.All rights reserved.
 
This manual is generated on the fly using mpfserver and MPFT (mpf transformation).