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: [xsl] Formatting string


Subject: Re: [xsl] Formatting string
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 16 May 2007 14:13:49 +0200

Abel Braaksma wrote:
Something like:

<xsl:sequence select="replace($input, '[A-Z]', '$0 ')" />

Or, more precisely (Lu are all possible uppercase letters, including the ones with diacritics etc):
<xsl:sequence select="replace($input, '\p{Lu}', '$0 ')" />



This is another alternative if you do not want to replace the first capital letter (as Jesper pointed out) :


<xsl:sequence select="replace($input, '.[A-Z]', '$0 ')" />

or
<xsl:sequence select="replace($input, '.\p{Lu}', '$0 ')" />


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