[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: How to Tag Several Words in a Given String

Subject: RE: How to Tag Several Words in a Given String
From: UlyLee <ulyleeka@xxxxxxxxx>
Date: Fri, 14 Oct 2005 02:06:25 -0700 (PDT)
how to tag
This did it! :D thanks a lot sir!

--- Michael Kay <mike@xxxxxxxxxxxx> wrote:

> > 
> > <xsl:function name="f:replace-all">
> >   <xsl:param name="input" as="xs:string"/>
> >   <xsl:param name="words-to-replace"
> as="xs:string*"/>
> >   <xsl:param name="replacement" as="xs:string"/>
> >   <xsl:sequence select="if
> (exists($words-to-replace))
> >           then f:replace-all(replace($in,
> $words-to-replace, 
> > $replacement))
> >           else $input"/>
> > </xsl:function>
> > 
> 
> I made the mistake of tidying the code just before
> posting it and messed it
> up. What I meant to say was:
> 
> <xsl:function name="f:replace-all">
>   <xsl:param name="input" as="xs:string"/>
>   <xsl:param name="words-to-replace"
> as="xs:string*"/>
>   <xsl:param name="replacement" as="xs:string"/>
>   <xsl:sequence select="if
> (exists($words-to-replace))
>           then f:replace-all(replace($in,
> $words-to-replace[1],
> $replacement),
>                             
> remove($words-to-replace,1),
>                              $replacement)
>           else $input"/>
> </xsl:function>
> 
> Michael Kay
> http://www.saxonica.com
> 
> 



		
__________________________________ 
Yahoo! Music Unlimited 
Access over 1 million songs. Try it free.
http://music.yahoo.com/unlimited/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.