>> English << | Français | Deutsch | Magyar | 中文 | Polski | ZVON > Tutorials > XSLT Tutorial |
Intro / Search / ZVON |
>> Page 52 << | Prev | Next | Contents | Element Index |
XML Source
<source> <text>goose</text> </source> Output
<P>goose</P> <P>GOOSE</P> <P>good</P> <P>bad</P> <P>books</P> HTML view
goose GOOSE good bad books |
XSLT stylesheet
<xsl:stylesheet version = '1.0'
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'> <xsl:template match="/"> <P> <xsl:value-of select="//text"/> </P> <P> <xsl:value-of select="translate(//text,'egos','EGOS')"/> </P> <P> <xsl:value-of select="translate(//text,'se','d')"/> </P> <P> <xsl:value-of select="translate(//text,'gseo','bad')"/> </P> <P> <xsl:value-of select="translate(//text,'gseg','bksC')"/> </P> </xsl:template> </xsl:stylesheet> |