Created
June 20, 2012 20:34
-
-
Save DavidOliver/2962043 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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