[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
Re: [xsl] select="String" as opposed to select="node" when passing parameters with
Re: [xsl] select="String" as opposed to select="node" when passing parameters with
Subject: Re: [xsl] select="String" as opposed to select="node" when passing parameters with <xsl:call-template> From: Mike Moran <Mike.Moran@xxxxxxxxxxx> Date: Thu, 21 Dec 2000 17:32:15 +0000 |
"Palaniappan, Krishnasamy" wrote: > > Hi, > I have a template with one parameter. When I call the template; > <xsl:call-template name="tname"> > <xsl:with-param name="var1" select="STRING"/> > </xsl:call-template> > > When i try to to do this, it returns an error because there is no <STRING> node. However, what I actually want is for the literal 'STRING' to be passed as an argument to the template. > > Is this possible? Yes, just do this: <xsl:call-template name="tname"> <xsl:with-param name="var1">STRING</xsl:with-param> </xsl:call-template> -- Mike.Moran@xxxxxxxxxxx Web: http://houseofmoran.com/ AvantGo: http://houseofmoran.com/Lite/ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] select="String" as opposed to, Palaniappan, Krishna | Thread | RE: [xsl] select="String" as oppose, Edmund Mitchell |
RE: [xsl] select="String" as oppose, Edmund Mitchell | Date | [xsl] White space - preserving whit, Brand_Niemann |
Month |