xfj:apply-server-template

Top Previous Topic Next Topic  Print this topic

This element can be a "child" of xfj:document or xfj:overlay elements. It is recommended for the user to first get more information about the "parent" elements before applying this attribute.

 

If the file referenced by the xfj:external-content of the parent document or overlay is an XML data document, then a template may be assigned to it using the xfj:apply-local-template or xfj:apply-server-template elements.

 

The syntax for xfj:apply-server-template is as follows:

 

 

       <xfj:apply-server-template src="serverApplicationName:templateName.xfd" language-id="templateLanguageId" parameters="p1,v1;p2,v2;...;pN,vN;"/>

 

 

The following attributes can be applied to this element:

 

·src - points to a server template using the form ApplicationName:TemplateName (TemplateName includes the template's filename extension).
·language-id - is used for specifying the language used for XFD translations. Its value must be one of the languages declared in the template.
·parameters - specifies the key/value pairs that must be used during the transformation and that are passed to the XSLT engine.

 

To specify a server template that will be used together with a specific XML document, the xfj:apply-local-template element must be used.