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]
Other format: [Raw text]

RE: How to generate Tag by parameter


<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)),'&#10;')" />
>        </$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


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