Imago provides a mechanism to define the transforms a document must undergo before being presented to a client. Control of those transforms is defined in the ProcessMap.xml file. In general the process map defines how the system will process specific requests using the following logic:
Following is the DTD for ProcessMap.xml : <!ELEMENT processmap (req+,transform+,formatters)> <!ELEMENT req EMPTY> <!ATTLIST req uri CDATA #REQUIRED> <!ATTLIST req source CDATA #IMPLIED> <!ATTLIST req transform CDATA #IMPLIED> <!ATTLIST req format CDATA #IMPLIED> <!ELEMENT transform (transformer+)> <!ATTLIST transform name CDATA #REQUIRED> <!ATTLIST transform default (y) #IMPLIED> <!ATTLIST transform format CDATA #IMPLIED> <!ELEMENT transformer EMPTY> <!ATTLIST transformer uri CDATA #REQUIRED> <!ATTLIST transformer format CDATA #IMPLIED> <!ELEMENT formatters (format+)> <!ATTLIST formatters doctype-public CDATA #IMPLIED> <!ATTLIST formatters doctype-system CDATA #IMPLIED> <!ATTLIST formatters encoding CDATA #IMPLIED> <!ATTLIST formatters indent (yes|no) 'no'> <!ATTLIST formatters method CDATA #IMPLIED> <!ATTLIST formatters media-type CDATA #IMPLIED> <!ATTLIST formatters omit-xml-decl (yes|no) 'no'> <!ATTLIST formatters standalone (yes|no) 'yes'> <!ATTLIST formatters version CDATA #IMPLIED> <!ATTLIST formatters preserve-space (true|false) 'false'> <!ELEMENT format EMPTY> <!ATTLIST format name CDATA #REQUIRED> <!ATTLIST format doctype-public CDATA #IMPLIED> <!ATTLIST format doctype-system CDATA #IMPLIED> <!ATTLIST format encoding CDATA #IMPLIED> <!ATTLIST format indent (yes|no) 'no'> <!ATTLIST format method CDATA #IMPLIED> <!ATTLIST format media-type CDATA #IMPLIED> <!ATTLIST format omit-xml-decl (yes|no) 'no'> <!ATTLIST format standalone (yes|no) 'yes'> <!ATTLIST format version CDATA #IMPLIED> <!ATTLIST format preserve-space (true|false) 'false'> req elementAttributes:
Example:<req uri="/index.xml" transform="imago_index"/> <req uri="/extension.xml" transform="imago_extension"/> <req uri="/status.xml" transform="imago_extension" /> <req uri="/rfs.xml" transform="rfs_list" />back to top transform element.Attributes:
transformer element.Attributes:
Example:<transform name="imago_index" default="y"> <transformer uri="index.xsl"> </transform> <transform name="imago_extension"> <transformer uri="extension.xsl"> <transformer uri="index.xsl"> </transform> <transform name="rfs_list"> <transformer uri="rdf_aggregrate.xsl"> <transformer uri="rdf_standardize.xsl"> <transformer uri="rdf_html.xsl" format="html,xhtml"> </transform>back to top formatters element.The formatters element defines the default attribute values for the enclosed format elements. Attributes:
Example:<formatters encoding="UTF-8" preserve-space="true" omit-xml-decl="yes" > <format name="html" doctype-public="-//W3C//DTD HTML 4.0//EN" doctype-system="http://www.w3.org/TR/REC-html40/strict.dtd" media-type="text/html" method="html" /> <format name="html-loose" doctype-public="-//W3C//DTD HTML 4.0 Transitional//EN" doctype-system="http://www.w3.org/TR/REC-html40/loose.dtd" media-type="text/html" method="html" indent="yes" /> <format name="smil" doctype-public="-//W3C//DTD SMIL 1.0//EN" doctype-system="http://www.w3.org/TR/REC-smil/SMIL10.dtd" media-type="application/smil" method="xml" omit-xml-decl="no" /> <format name="svg" doctype-public="-//W3C//DTD SVG 20000303 Stylable//EN" doctype-system="http://www.w3.org/TR/2000/03/WD-SVG-20000303/" media-type="image/svg-xml" method="xml" omit-xml-decl="no" /> <format name="text" media-type="text/plain" method="text" /> <format name="vrml" media-type="model/vrml" method="text" /> <format name="xhtml" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" doctype-system="xhtml1-strict.dtd" media-type="text/html" method="xhtml" /> <format name="xhtml-loose" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="xhtml1-transitional.dtd" media-type="text/html" method="xhtml" /> <format name="xml" media-type="text/xml" method="xml" omit-xml-decl="no" /> <format name="wap" doctype-public="-//WAPFORUM//DTD WML 1.1//EN" doctype-system="http://www.wapforum.org/DTD/wml_1.1.xml" media-type="text/vnd.wap.wml" method="xml" omit-xml-decl="no" /> </formatters>back to top All trademarks and copyrights are the property of their respective owners.
Copyright © 2002-2004 by Xenei.com, All Rights Reserved
|