W3C home > Mailing lists > Public > www-xsl-fo@w3.org > June 2001

replacing cdata in nodes q.

From: Kerin Cosford <Kerin.Cosford@current-drugs.com>
Date: Fri, 1 Jun 2001 10:35:08 +0100
Message-ID: <B630B725359AD411967B00508BFC8E90024509C6@severin.cursci.co.uk>
To: "W3 Xsl List (E-mail)" <www-xsl-fo@w3.org>
Well, sort of.
I'm writing a XSL sheet to process a large volume of XML files into HTML.
Every XML file has a node ("Summary") which contains a large block of text.
Within that text, there are various reference numbers (these are scientific
documents) in the format [1234567]. What I need to do is have each occurance
of the ref. number wrapped in a <a href="1234567"></a> in the resulting
HTML. Unfortunately I can't search for a certain string of digits, as the
reference numbers are not always 7 characters long - so what I need to do is
have a template which looks for the square brackets, and returns what is
held inside them to the result tree like so: [<a
I am, unfortunately, clueless as to how I would go about searching through a
large body of text in XSL. Can anybody point me in the right direction?
{FYI - we are aware that this is a very clunky thing to be doing. New data
added to the database will have these references marked up as <ref/>, and we
are looking into converting the legacy data to this format.
Thanks in advance,
Received on Friday, 1 June 2001 05:34:22 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:58:24 UTC