/Generator/xsl/template_lua_table.xsl

http://awoe.googlecode.com/ · Extensible Stylesheet Language Transformations · 9 lines · 9 code · 0 blank · 0 comment · 0 complexity · 112d21adfbd8a799e6c829f1204ea712 MD5 · raw file

  1. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  2. <xsl:template match="/">
  3. collections = {
  4. <xsl:for-each select="catalog/cd">
  5. {title = "<xsl:value-of select="title" />" , artist = "<xsl:value-of select="artist" />"},
  6. </xsl:for-each>
  7. }
  8. </xsl:template>
  9. </xsl:stylesheet>