This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: How to generate Tag by parameter
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Mon, 10 Jun 2002 19:58:37 +0100
- Subject: RE: [xsl] How to generate Tag by parameter
- Reply-to: xsl-list at lists dot mulberrytech dot com
<xsl:element name="{$taginsert}">
Michael Kay
Software AG
home: Michael.H.Kay@ntlworld.com
work: Michael.Kay@softwareag.com
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> CAO Tuan Dung
> Sent: 10 June 2002 16:35
> To: xsl-list@lists.mulberrytech.com
> Subject: [xsl] How to generate Tag by parameter
>
>
> I would like generate Tag </HTML> or <BODY> by value of
> parameter. How
> can i do that?
> For example, I try:
> <xsl:template name="getListItem">
> <xsl:param name="list" />
> <xsl:param name="delimiter"/>
> <xsl:param name="taginsert"/>
>
> <$taginsert>
> <xsl:value-of
> select="concat(normalize-space(substring-before($list,
> $delimiter)),' ')" />
> </$taginsert>
> </xsl:template>
>
> <xsl:template match="/">
> <xsl:call-template name= "getListItem">
> <xsl:with-param name="list"
> select="/html/body/blockquote/div[1]/font/a[2]" />
> <xsl:with-param name="delimiter" select="','"/>
> <xsl:with-param name="taginsert" select="'AuthorName'"/>
> </xsl:call-template> </xsl:template>
>
> But i not run. Any one have an idea for this problem?
> Please help me.
> Best regards.
>
>
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list