Home| Design| License| Regex| Download| Credits| Contact
Text-Zap Info
› Overview› Text-Zap Ant Task› Expand Text-Zap› API Docs
Components
› Filters› Savers› Groupers› Sequencers
Filters
› Append Filter› Append File Filter› Extract Lines Filter› Find Filter› Insert References› Merge Filter› Replace Filter› Replace List Filter› Replace Filter Plus› Reverse Filter› Split By Regex Filter› XSLT Filter

Insert References Filter

This filter is designed to make files "self aware" and/or aware of their peers. For example. You have a series of web pages that are created from xml and you want them to contain links to one another, but there is nothing in the xml which will tell the file its own name or the name of the next or previous files.
The solution is the InsertReferences Filter. Insert reference tags via xsl and then use InsertReferences to change those tags into meaningfull file names.
The list of currently supported tages is displayed below.

Parameters

AttributeDescriptionRequired
sequencerthe sequence to use when determining the previous and next filesYes
prevDefault default value to assign when to the @prevfile@ tag in the first file when there is no previous file No; defaults to ./index.html
nextDefault default value to assign when to the @nextfile@ tag in the last file when there is no next file No; defaults to index.html

^topExamples

Replaces all tags and sequences the files with a FileNameSequencer
 <insertReferences>
 	<fileNameSequencer/>
 </insertReferences>
Replaces all tags and sequences the files with a FileNameSequencer and provides default values
 <insertReferences prevDefault="../prev.html" nextDeafult="../next.html">
 	<fileNameSequencer/>
 </insertReferences>
SourceForge.net Logo