Ejen Logo
 
   <template>


Description
Template node is intended to provide an XSL transformation of an XML in memory input into an output file (whatever is the protocol in use). Unlike the filter, a template node does not change the current XML node content. You should use an xsl:output instruction in the stylesheet in order to output content in XML, HTML or text format.
 
...
<template save="{@class-name}.java" uri="java.xsl"/>
...

An XSL stylesheet named "java.xsl" will be used in order to output a Java source file (output in the stylesheet must be set to "text"). Output file name will be set to "MyClass.java" (depending on the "class-name" attribute value).
 
See also filter node.

Attribute Summary
 
NameDefault ValueOptionalAccepted Values
backuponetrueone | no | all
cachetruetruetrue | false
save true 
uri false 

Attribute Detail
 
backup
what should we do if output file already exists: overwrite it (no), create only one backup (one) or create an unique backup each time (all) ? If "one" is set (this is the default), existing file will be renamed to [name-of-the-file].bak (overwriting previous backup if any) ; if "all" is set, existing file will be renamed to [name-of-the-file].[system-time-in-milliseconds]. Note that even in this case, if system time has been manually changed, there is a risk of overwriting.
cache
this attribute is always relative to an uri attribute within the same node. It allows to enable or to disable cache use for specific protocols (http protocol for example, if you have implemented this protocol with cache support).
save
URI of the file to be generated.
uri
name of the file to be generated. this is a generic input or output attribute. It is used as a content reference, using a specific protocol: file, http, ftp and jar protocols are supported by default, but there is a way to plug in additional protocols (see option node). If no protocol is specified, file is used by default. An uri attribute, except if it is absolute, is always relative to a base URI (see ejen node). Note that all protocols are not supposed to allow both reading and writing.

Children
 
import, include, param


SourceForge.net Logo