Skip to main content
summaryrefslogblamecommitdiffstats
blob: 8235e4fd52b3583f54621fd4bfede86d785e82bf (plain) (tree)
1
2
3
4
5
6




                                                                        
                                                                                      













                                                                                                     
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    


















                                                                                                                                                                                                       














                                                                                                                                                                                                         




























                                                                                                                                                                                                                                               










                                                                                                                                      
 






                         
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<META name="GENERATOR" content="IBM Software Development Platform">
<link rel="STYLESHEET" href="../../../book.css" charset="ISO-8859-1" type="text/css"/>
<TITLE>&lt;c:load&gt; - Standard JET2 Control Tags</TITLE>
</HEAD>
<BODY>
<TABLE border="0" cellpadding="0" cellspacing="1" width="100%">
	<TBODY>
		<TR>
			<TH align="left">
			<P>&lt;c:load&gt;</P></TH>
			<TH align="right"><A href="overview.html">Standard JET2 Control Tags</A></TH>
		</TR>
	</TBODY>
</TABLE>
<HR>
<P><B>load</B></P>
<P><P>               Load the referenced model, and set the passed variable to the loaded document root.<P><P>The optional urlContext attribute determines how relative URL in the url attribute are resolved. Predefined constants: 'transform', indicating that URL is relative to the root directory of the transformation; 'workspace', indicating the URL is relative to the current Eclipse workspace.<P><P>The optional loader attribute determines which loader is used to load the model. The default loader is 'emf', although other loaders may have been contributed.<P>            </P>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Tag Summary</TH></TR>
		<TR>
			<TD width="10%">required</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;c:load url=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot;/&gt;<br>
			</SPAN></TD>
		</TR>
		<TR>
			<TD width="10%">full tag</TD>
			<TD><SPAN style="font-family: monospace">
			&lt;c:load url=&quot;<I>value</I>&quot; var=&quot;<I>value</I>&quot; urlContext=&quot;<I>value</I>&quot; loader=&quot;<I>value</I>&quot; type=&quot;<I>value</I>&quot;/&gt;<br>
			</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Required Attributes</TH></TR>
		<TR>
			<TD width="10%">url</TD>
			<TD><BR>                  The URL of the model to load. Usually, this is a relative URL, and is interpretation is controlled by the urlContext attribute.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">var</TD>
			<TD><BR>                  A variable name. The root of the loaded document is set to this variable.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Optional Attributes</TH></TR>
		<TR>
		<TR>
			<TD width="10%">urlContext</TD>
			<TD><BR>                  A url context constant. See tag comments for possible values. The default is 'transform'.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">loader</TD>
			<TD><BR>                  A constant defining the loader to use. The default is determined by the system, depending upon the value of 'type' if specified, or the extension specified on 'url'.<BR>               </TD>
		</TR>
		<TR>
			<TD width="10%">type</TD>
			<TD><BR>                  The type (typically the extension) of the model. That may be required if the URL does not have a standard extension.<BR>               </TD>
		</TR>
	</TBODY>
</TABLE>
<HR>
<TABLE border="1" width="100%">
	<TBODY>
		<TR>
			<TH colspan="2" align="left">Example</TH></TR>
		<TR>
			<TD width="10%"></TD>
			<TD><SPAN style="font-family: monospace">
<!-- Begin load example -->
            &lt;%-- Load plugin.xml from transformation as an XML model, $pluginDoc refers to the
            loaded document. $pluginDoc/* (or $pluginDoc/plugin) refers to the root element --%&gt;<BR>
			&lt;c:load url=&quot;plugin.xml&quot; var=&quot;pluginDoc&quot;/&gt;<br><BR>

            &lt;%-- same action as above, but with defaults specified --%&gt;<BR>
			&lt;c:load url=&quot;plugin.xml&quot; var=&quot;pluginDoc&quot; urlContext=&quot;transform&quot; 
			loader=&quot;org.eclipse.jet.emfxml&quot; /&gt;<br><BR>

            &lt;%-- Load sample.appdef from project myProject as an XML document --%&gt;<BR>
			&lt;c:load url=&quot;myProject/sample.appdef&quot; var=&quot;sampleDoc&quot; urlContext=&quot;workspace&quot; 
			loader=&quot;org.eclipse.jet.emfxml&quot; type="xml" /&gt;<br>

<!-- End load example -->
</SPAN></TD>
		</TR>
	</TBODY>
</TABLE>
<P></P></BODY>
</HTML>

Back to the top