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

Re: transform a string

Subject: Re: transform a string
From: Jan Limpens <jan.limpens@xxxxxxxxx>
Date: Sat, 27 Nov 2004 17:31:17 -0200
free cartoon string font
thanks michael,

I knew something was wrong, when things got complicated.
these substring thingies were exactly what I needed

jan

On Sat, 27 Nov 2004 09:51:42 -0000, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> >                               <xsl:value-of
> > select="translate(string(site:xml-file), $baseDir, '')"/>
> >                       </site:link>
> >               </site:document>
> >       </xsl:template>
> >
> > but keep getting strange, scrambled results...
> 
> Scrambled yes, strange no. Read the spec of translate()! Used like this, it
> deletes all occurrences of characters that appear anywhere in $base-dir from
> the contents of site:xml-file. You seem to be imagining that it does
> something completely different.
> 
> Take a look at the spec of substring-after and see whether that better meets
> your needs.
> 
> Michael Kay
> http://www.saxonica.com/
> 
> 


-- 
Jan
http://www.limpens.com

Otakoo Saloon Cartoon - newest episode at http://limpens.com/oscredirect

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.