This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Parameter substitution
- From: Trevor Nash <tcn at melvaig dot co dot uk>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Wed, 19 Dec 2001 18:19:49 +0000
- Subject: Re: [xsl] Parameter substitution
- Organization: Melvaig Software Engineering Limited
- References: <E16GkZ4-000MFR-00@oceanus.uk.clara.net>
- Reply-to: xsl-list at lists dot mulberrytech dot com
>My task, (you guessed it) is to replace each %1, %2 etc.. with a string
>built from the correspondong ErrorParameter
Step one is to write an element instead of %1 - something like
<arg n="1"/>
that will make your life a whole lot easier.
Not allowed to change the XML ? Well, you can do it using some quite
messy recursive string-handling templates. Fortunately if you look a
month or two back in the archive of this list you will find someone
has already most done the work for you. But its still easier to get
the XML right first if you can.
Trevor Nash
--
Traditional training & distance learning,
Consultancy by email
Melvaig Software Engineering Limited
voice: +44 (0) 1445 771 271
email: tcn@melvaig.co.uk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list