row_field_output.xsl 545 B

12345678910111213141516171819
  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  2. <xsl:output method="xml" encoding="utf-8" indent="yes" />
  3. <xsl:strip-space elements="*"/>
  4. <xsl:template match="@*|node()">
  5. <xsl:copy>
  6. <xsl:apply-templates select="@*|node()"/>
  7. </xsl:copy>
  8. </xsl:template>
  9. <xsl:template match="row/*">
  10. <field>
  11. <xsl:attribute name="field">
  12. <xsl:value-of select="name()"/>
  13. </xsl:attribute>
  14. <xsl:value-of select="text()"/>
  15. </field>
  16. </xsl:template>
  17. </xsl:stylesheet>