|
[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()?
> 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








