This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: passing parameters to an import file


try using the with-param

<xsl:call-template name="">
<xsl:with-param name="" select=""/>
</xsl:call-template>

though i suspect this may not be supported across all parsers with
document() calls, and not quite sure if it is supported at all, will be
interesting to know though.

cheers, jim fuller

----- Original Message -----
From: "Tanzila Mohammad" <tmohammad@entier-solutions.com>
To: <xsl-list@lists.mulberrytech.com>
Sent: Monday, September 10, 2001 12:18 PM
Subject: [xsl] passing parameters to an import file


> I have a xsl stylesheet (main.xsl) which imports another xsl stylesheet
> (common.xsl).
>
> Within main.xsl there is the following code:
>
>  <xsl:call-template name="noResults"/> <!--noResults is contained within
the
> common.xsl-->
>
> However, common.xsl requires a parameter which is utilized by the
noResults
> template, is there a way to pass the parameter to the template from
main.xsl
> via the call?
>
> Something like this:
>
> <xsl:call-template name="noResults(<xsl:value-of select="$param"/>)"/>
>
> Thanks
>
> Tanzila
>
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]