Tempore 22:58:12, die 07/20/2005 AD, hinc in
xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com scripsit Joe Heidenreich
<HeidenreichJ(_at_)aaps(_dot_)org>:
It might be a case-sensitive issue. Have you tried <xsl:element
name="{(_at_)type}">
I agree with this diagnosis.
This stylesheet could do the job:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="Entry[(_at_)name]">
<xsl:element name="{(_at_)type}">
<xsl:apply-templates select="@*"/>
<xsl:apply-templates select="@name" mode="makeElement"/>
<xsl:apply-templates/>
</xsl:element>
</xsl:template>
<xsl:template match="Entry/@name"/>
<xsl:template match="Entry/@*" mode="makeElement">
<xsl:element name="{name()}"><xsl:value-of select="."/></xsl:element>
</xsl:template>
</xsl:stylesheet>
regards,
--
Joris Gillis (http://users.telenet.be/root-jg/me.html)
"Η αλήθεια και το λάδι πάντα βγαίνουν από πάνω"
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--