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

Re: Q: Where to use XSLT functions like substring-before()?

Subject: Re: Q: Where to use XSLT functions like substring-before()?
From: Mike Brown <mike@xxxxxxxx>
Date: Sat, 29 Apr 2000 08:43:45 -0600 (MDT)
how to use xslt functions
> How would I use substring-before() (for example) to generate some text,
> something like this?
> 
> <xsl:element name="h1" value="substring-before('Mickey Mouse','e')"/>
> 
> yeilding:

'i before e, except after c' (except in weird and caffeine) :)

> <h1>Mick</h1>

What you want to construct is an element node 'h1' with a child text node
'Mick'.

<xsl:element name="h1">
  <xsl:value-of select="substring-before('Mickey Mouse','e')"/>
</xsl:element>

<h1>
  <xsl:value-of select="substring-before('Mickey Mouse','e')"/>
</h1>

   - Mike
___________________________________________________________
Mike J. Brown, software engineer, Webb Interactive Services
XML/XSL stuff: http://www.skew.org/    http://www.webb.net/


 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.