This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: replace each same character by another one (or more)
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] replace each same character by another one (or more)
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Tue, 27 Mar 2001 11:36:51 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
To replace single characters, use the translate() function.
To replace a character with multiple characters, you need a recursive
template. Follow the links from the xsl-list home page to the Dave Pawson
FAQ site, and look for "replace", where you will find some examples.
Mike Kay
Software AG
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Kristof
> Bernaert
> Sent: 27 March 2001 10:29
> To: 'XSL-List@lists.mulberrytech.com'
> Subject: [xsl] replace each same character by another one (or more)
>
>
> where a quote-sign ( ' ) is used in xml-doc, it has to be
> replaced by slash
> + quote-sign ( /' )
> how to process a whole document at once ?
>
> i tried already like this:
> <xsl:template match="Body"><xsl:value-of select=" ....
>
> but this don't result in a node, just the value of, with the
> result when the
> element Body is called, only the value is given, thus,
> without the lay-out
> defined in 'template-match' for elements included in the Body element
>
> ps: the only way i can call the node Body is like this,
> <xsl:apply-templates
> select="Information/Body"/> (within javascript)
>
> some nice brain with solution ? :-)
>
> thx
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list