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

RE: Recursio and filepathstripping...

Subject: RE: Recursio and filepathstripping...
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Mon, 19 Feb 2001 05:26:08 -0800 (PST)
 RE: Recursio and filepathstripping...
Hi Jukka,

Remove the following:


>     <xsl:variable name="sourcevariable" select="substring-before($source,
>      '.')" /> <!-- file extension is cutted out -->

And with minor adjustments you'll get the intended results.

As it is now, you're trying to strip the text after the dot ***on every call*** to the template.

The second time (in case there's just one dot in the text) you do this $sourcevariable wil be set
to the empty string.

Hope this helped,

Cheers,
Dimitre Novatchev.
 

Jukka Lehtinen wrote:
I'm having filepath in one attribute (e.g.
source="result\test\tomorrow\now.txt" or source="test\file.gif") and I need
that "now" or "file" infrormation from that source attribute.

  <xsl:template name="identifierrip">
    <xsl:param name="source" />
    <xsl:variable name="sourcevariable" select="substring-before($source,
'.')" /> <!-- file extension is cutted out --> 
 
      <xsl:choose>
........................

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.