W3C home > Mailing lists > Public > public-mobileok-checker@w3.org > October 2007

Re: Parametrized results in XSLT

From: Roland Gülle <roland@7val.com>
Date: Thu, 18 Oct 2007 19:47:14 +0200
Message-Id: <025955D5-8B5A-4A85-BA09-1B3B7D24B95E@7val.com>
Cc: public-mobileok-checker@w3.org
To: Dominique Hazael-Massieux <dom@w3.org>


Am 18.10.2007 um 17:46 schrieb Dominique Hazael-Massieux:

> Le jeudi 18 octobre 2007 à 15:43 +0200, Roland Gülle a écrit :
>> 2.
>> The quick solution is define, one, two params, and use them also with
>> a static replacement
>> $param1 is replaced with PLACEHOLDER_1
>> [...]
>>
>> No.3 is the most dynamic solution, No.2 the easiest.
>
> I think we should start with 2 for now; we can always choose a  
> different
> path later if that proves necessary.
>
> I know of at least one case where we would need 2 params, so let's  
> start
> with two of them.
done.

now you could use:
<xsl:call-template name="result">
  <xsl:with-param name="replace1">foo</xsl:with-param>
  <xsl:with-param name="replace2">bar</xsl:with-param>
  ...
</xsl:call-template>

foo and bar would be replaced with the placeholder
> PLACEHOLDER_1
> PLACEHOLDER_2
in the message.

Cheers,
  Roland
Received on Thursday, 18 October 2007 17:47:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:13:04 GMT