[thelist] Basic XSLT problem
Marcus Andersson
marcan at home.se
Wed Jan 14 04:47:36 CST 2004
I think this might do what you want
/Marcus
<?xml version="1.0" ?>
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output indent="yes" />
<xsl:template match="record">
<record title="{@title}">
<xsl:apply-templates select="@*[local-name() != 'title']"/>
</record>
</xsl:template>
<xsl:template match="@*">
<xsl:element name="{local-name()}">
<xsl:value-of select="."/>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
More information about the thelist
mailing list