Script: txtcontent-element
A txtcontent element tells where the module shall search for text content. The template of the module must have a processing instructions (PI) of type importtxt, see: ImportTXT to realize the actual extraction of content.
A Module may contain any number of TXTContent elements.
<txtcontent location="" transformation="" />
location(mandatory) | Any string that represents a file, either as an absolute URI or as an URI relative to the active anchor. |
backuplocation(optional) | Any string that represents a file, either as an absolute URI or as an URI relative to the active anchor. Is used if location for some reason is not availabe. It is not a backup in the sense that the primary file is stored here. It is up to you to supply a meaningfull backup file. |
transformation(optional) | A transformation identifier (see: Transformation ). The transformation may have a parameter list: T(name='ole',address='Halden'). This transformation is supposed to produce text from xml and are applied before we extract text from the content. This transformation is overruled by a possible transformation in the actual import PI. |
id(optional) | An id that identifies this textcontent in importtext in a template. |
A txtcontent element may not contain any elements
Examples:
<txtcontent location="${_scriptpath}/section3/myfile.txt"/>