[Home] [By Thread] [By Date] [Recent Entries]

Subject: Re: element name as attribute value
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 23 Jan 2007 10:10:02 GMT
it depends what you want to do.

<xsl:template match="Y">
  <B attribute="Y"/>
</xsl:template>

or
<xsl:template match="X">
  <B attribute="{name(*[1])}">
</xsl:template>

both generate   <B attribute="Y"> from the posted input.

David

Current Thread
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member