xsl-list
[Top] [All Lists]

Re: [xsl] rephrased: passing parameters to generic templates

2006-04-12 05:00:11
On 4/12/06, Florent Georges <darkman_spam(_at_)yahoo(_dot_)fr> wrote:
andrew welch wrote:

<xsl:template match="a">
  <a href="{ancestor::para/docBase}">.....

  I'm not sure, but I think the OP needs "ancestor::para[1]/...",
doesn't it?

No I don't think so, there is only one ancestor <para> for each <a>,
so it should be fine.

If I were using 2.0 I would use a tunnelled parameter that was created
at the <para> matching template and then read in the <a> matching
template, but the OP didnt day whether they could use 2.0 or not....

--~------------------------------------------------------------------
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>
--~--