I am trying to figure out how to search for the 2nd instance of a character
in a string and then output only the first 4 digits that follow this
character. For the PubDate element, I want to find the 2nd instance of the
back slash ("/") and then output the 4-digit year that follows this back
slash. In the following example, I want to output "2008'.
<PubDate>5/12/2008 3:13:14 PM</PubDate>
I want to output the year so it displays in paragraph hardcoded into the
stylesheet. For example,
<p>©<PubDate
Year><xsl:text> TheAxsl-list(_at_)lists(_dot_)mulberrytech(_dot_)comBC
Group, Inc.</xsl:text></p>
I know something like this can be achieved using <xsl:value-of
select="PubDate"> but don't know the logic/argument to pass to search the
back slash and output the year that follows it.
Thanks for your help!
_______________________________
Sharon Goldner Harris
Knowledge Management Evangelist
Ultimate Software Group
704-660-6482
Confidentiality Note: This e-mail message and any attachments to it are
intended only for the named recipients and may contain legally privileged
and/or confidential information. If you are not one of the intended
recipients, do not duplicate or forward this e-mail message.
--~------------------------------------------------------------------
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>
--~--