This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
re: text retrieval problem
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: re: text retrieval problem
- From: Matthew Bentley <Matthew dot bentley at brookers dot co dot nz>
- Date: Thu, 10 Aug 2000 15:24:43 +1200
- Reply-To: xsl-list at mulberrytech dot com
Figured my own problem out - used a recursive template to grab the last item
in the text:
<xsl:template name="find_page_number">
<xsl:param name="text" />
<xsl:choose>
<xsl:when test="contains($text, ' ')">
<xsl:call-template name="find_page_number">
<xsl:with-param name="text"
select="substring-after($text, ' ')" />
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<!-- Page number found - no more spaces -->
<xsl:value-of select="$text" />
</xsl:otherwise>
</xsl:choose>
</xsl:template>
******************************************************************
Warning: This email, including any attachments,
is for the use of the intended recipient(s) only.
Republication and redissemination,
including posting to news groups or web pages,
is strictly prohibited without the express prior consent of Brooker's Limited.
******************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list