Script: fragments-element
A fragments-element is a reference to a file with fragments Fragment . The definition-element may contain any number of fragments-elements.
<fragments location=""/>
location(mandatory) | Location of the file with fragments. The location is corrected for pathfragments. |
encoding(optional) | If not set, the encoding of the using module is assumed. |
Examples:
<fragments location="myfragments.xml"/>
and the fragment file, myfragments.xml may look like this:
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <fragments> <fragment id="head"> <![CDATA[ <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta> <title><?_wxt fragment id="_name"?></title> <link rel="STYLESHEET" href="stdstyle.css"/> <link rel="STYLESHEET" href="mathstyles.css"/> <script type="text/javascript" src="prototype.js"> </script> <script type="text/javascript" src="std.js"> </script> ]]> </fragment> <fragment id="banner"> <![CDATA[ <?_wxt image id="bs-2"?> <hr/> ]]> </fragment> <fragment id="leftcolumn"> <![CDATA[ <?_wxt modulemenu summary="no"?> <div style="margin-left:20px; margin-top:20px"> </div> ]]> </fragment> <fragment id="signature"> <![CDATA[ <hr/> <div>bs with <?_wxt stamp?></div> ]]> </fragment> </fragments>
The content of a fragment element may be a simple text or any legal XML-fragment wrapped as CDATA.