Ejen Logo
 
   <filter>


Description
Filter node is intended to provide an XSL transformation of an XML in memory input into an XML in memory output. You must only use it with a stylesheet with no output specification (or with an explicit "xml" output specification).
 
A filter node may be apply to an entire XML tree or, by iteration, to a set of XML sub-trees (see foreach node).
 
...
<filter uri="{@filter}.xsl">
  <param name="language" select="'java'"/>
  <import uri="{@import}.xsl"/>
  <include uri="generic.xsl"/>
</filter>
...

If the current XML node is something like:
 
...
<data filter="java_filter" import="java_import">
  ...
</data>
...

the java_filter.xsl stylesheet will be used to transform this current XML tree fragment, using a parameter named language whose value is java, an imported stylesheet named java_import.xsl and an included stylesheet named generic.xsl.

Attribute Summary
 
NameDefault ValueOptionalAccepted Values
cachetruetruetrue | false
uri false 

Attribute Detail
 
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).
uri
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