xfj:apply-server-template

Top Previous Topic Next Topic  Print this topic

This element is a child of xfj:document or xfj:overlay. Please refer to these topics before reading.

 

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

 

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 src attribute points to a server template using the form ApplicationName:TemplateName (TemplateName includes the template's filename extension).

To specify the language used for XFD translations you need to use the language-id attribute. The value of this attribute must be one of the languages declared in the template.

The attribute parameters specifies the key/value pairs that must be used during the transformation and that are passed to the XSLT engine.

 

To specify a URL template to use with the specific XML document, use the xfj:apply-local-template element.