Skip to content

Instantly share code, notes, and snippets.

@DavidOliver
Created June 20, 2012 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavidOliver/2962043 to your computer and use it in GitHub Desktop.
Save DavidOliver/2962043 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<data>
<corsi-per-tutti>
<section id="7" handle="corsi-per-tutti">Corsi per tutti</section>
<entry id="69">
<titolo handle="corsi-intensivi-di-lingua">Corsi intensivi di lingua</titolo>
</entry>
<entry id="67">
<titolo handle="prezzi">Prezzi</titolo>
</entry>
</corsi-per-tutti>
</data>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/data">
<div style="border: 1px solid gray;">
<xsl:apply-templates select="corsi-per-tutti/entry" />
</div>
</xsl:template>
<xsl:template match="/data/corsi-per-tutti/entry">
<p><xsl:value-of select="titolo" /></p>
</xsl:template>
</xsl:stylesheet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment