|
Subject: Re: That didnt work either! RE: How to add a "less than" or "greater than" sign? From: "John E. Simpson" <simpson@xxxxxxxxxxx> Date: Wed, 12 Apr 2000 19:49:15 -0400 |
couple of you suggested the following. But that returns this :
<{@Type}>myvalue</@Type>
Bob duCharme's solution: <xsl:element name="{@Type}">myvalue</xsl:element> does indeed work with XT and with Saxon.
<?xml version="1.0"?>
<?xml:stylesheet type="text/xsl" href="demo1.xsl" ?>
<root>
<subelem Type="ATAG"/>
</root> <xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="subelem">
<xsl:element name="{@Type}">myvalue</xsl:element>
</xsl:template>
</xsl:stylesheet>================================================================ John E. Simpson | "After they make styrofoam, what do http://www.flixml.org | they ship it in?" (Steven Wright) simpson@xxxxxxxxxxx |
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: That didnt work either! RE: How, Wendell Piez | Thread | RE: How to add a "less than" or "gr, Selva, Francis |
| RE: That didnt work either! RE: How, Selva, Francis | Date | RE: Quick XSL programmer survey, David Duddleston |
| Month |