string-replace

- SourceForge
- Home Page
- Samples

- Reference Contents |
- Download & Install |
- User Guides |
- Notes, E-mail & Bugs |
- Q&A

Suggestions
Search:
Next: Paragraphs para.mod.xsl
Previous: normalize scape Up: Whitespace Normalization and Character Encoding normalize scape.mod.xsl

Reference Section

## Name

string-replace — Search-and-replace

## Synopsis

    <xsl:template name="string-replace">
    <xsl:param name="string"/>
    <xsl:param name="from"/>
    <xsl:param name="to"/>
      ...
    </xsl:template>

## A. Description

This template performs search-and-replace to modify all instances of a substring.

## B. Pertinent Variables

There are no configuration variables for this template.

## C. Template Parameters

string
  The text to be searched.
from
  The text (substring) to be replaced.
to
  The text that replaces the `from` text.

## D. DocBook Compliance and LaTeX Notes

This template will search within the `string` text for all occurrences of `from` and replace them with the `to` text.

Prev | Up | Next
normalize-scape | Home | Paragraphs para.mod.xsl