Subject: RE: [xsl] replace each same character by another one (or more) From: "Michael Kay" <mhkay@xxxxxxxxxxxx> Date: Tue, 27 Mar 2001 11:36:51 +0100 |
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@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Kristof > Bernaert > Sent: 27 March 2001 10:29 > To: 'XSL-List@xxxxxxxxxxxxxxxxxxxxxx' > 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] replace each same character b, Kristof Bernaert | Thread | [xsl] Error declaring doctype in ms, Riboni Ugo |
RE: [xsl] Can one element have more, DPawson | Date | RE: [xsl] <A> with parameters, Julian F. Reschke |
Month |