Sweet, thanks. I thought of doing that, but being new, I thought there
may have been something smarter.
d
On Mon, Sep 7, 2009 at 9:47 AM, Martin
Honnen<Martin(_dot_)Honnen(_at_)gmx(_dot_)de> wrote:
Douglas Wade wrote:
I am using the replace function, I would like to get value of the
attribute to be all caps and changed. There still is a lowercase 'b'
in the results. How should I change things to get it right.
Source:
<graphic boardno="rq4-b-271101-520-0002">
Transform:
<xsl:value-of select="replace( .,'RQ4-(.)-','RQ4N-A$1-','i')"/>
Bad Results:
<graphic boardno="RQ4N-Ab-271101-520-0002"/>
Desired Results:
<graphic boardno="RQ4N-AB-271101-520-0002"/>
If you want all upper case letters can't you simply do
<xsl:value-of select="upper-case(replace( .,'RQ4-(.)-','RQ4N-A$1-','i'))"/>
? Or could there be lower case letters in the attribute value you don't want
to change to upper case?
--
Martin Honnen
http://msmvps.com/blogs/martin_honnen/
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--