This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: How to generate Tag by parameter
- From: Jeni Tennison <jeni at jenitennison dot com>
- To: CAO Tuan Dung <Tuan-Dung dot Cao at sophia dot inria dot fr>
- Cc: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 10 Jun 2002 16:52:28 +0100
- Subject: Re: [xsl] How to generate Tag by parameter
- Organization: Jeni Tennison Consulting Ltd
- References: <200206100850.g5A8oVDV098971@chilled.skew.org><3D04C727.4020207@sophia.inria.fr>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Tuan-Dung,
> I would like generate Tag </HTML> or <BODY> by value of parameter. How
> can i do that?
You need to use xsl:element with an attribute value template in the
name attribute, rather than the non-well-formed
<$taginsert>...</$taginsert>. Just do:
<xsl:element name="{$taginsert}">
...
</xsl:element>
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.com/
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list