android_strings_format.xslt 488 B

1234567891011121314151617181920212223242526
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet version="1.0"
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  4. <xsl:output
  5. method="xml"
  6. version="1.0"
  7. encoding="UTF-8"
  8. indent="yes"
  9. omit-xml-declaration="yes"/>
  10. <xsl:template match="/resources">
  11. <resources>
  12. <xsl:for-each select="string">
  13. <xsl:sort select="@name"/>
  14. <string name="{@name}">
  15. <xsl:copy-of select="@* | node()"/>
  16. </string>
  17. </xsl:for-each>
  18. </resources>
  19. </xsl:template>
  20. </xsl:stylesheet>