xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

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 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
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor